(0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateRedditor (20130908122535)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "src" varchar(255), "descr" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_type" ON "redditor_images" ("imageable_type")  (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_id" ON "redditor_images" ("imageable_id")  (0.1ms) CREATE TABLE "redditor_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "pageable_id" integer, "pageable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) CREATE INDEX "index_redditor_pages_on_pageable_type" ON "redditor_pages" ("pageable_type")  (0.1ms) CREATE INDEX "index_redditor_pages_on_pageable_id" ON "redditor_pages" ("pageable_id")  (0.1ms) CREATE TABLE "redditor_slider_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_slider_blocks_on_page_id" ON "redditor_slider_blocks" ("page_id")  (0.1ms) CREATE TABLE "redditor_text_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "body" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_text_blocks_on_page_id" ON "redditor_text_blocks" ("page_id")  (0.1ms) CREATE TABLE "redditor_video_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "width" integer, "height" integer, "youtube" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_video_blocks_on_page_id" ON "redditor_video_blocks" ("page_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130908122535"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateArticles (20130908123351)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130908123351"]]  (2.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 12:54:49 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 12:54:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 12:54:49 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 12:54:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 12:56:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 12:56:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 12:56:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:06:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:07:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateRedditor (20130908122535)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "redditor_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "src" varchar(255), "description" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_type" ON "redditor_images" ("imageable_type")  (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_id" ON "redditor_images" ("imageable_id")  (0.1ms) CREATE TABLE "redditor_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "pageable_id" integer, "pageable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) CREATE INDEX "index_redditor_pages_on_pageable_type" ON "redditor_pages" ("pageable_type")  (0.2ms) CREATE INDEX "index_redditor_pages_on_pageable_id" ON "redditor_pages" ("pageable_id")  (0.1ms) CREATE TABLE "redditor_slider_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_slider_blocks_on_page_id" ON "redditor_slider_blocks" ("page_id")  (0.1ms) CREATE TABLE "redditor_text_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "body" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_text_blocks_on_page_id" ON "redditor_text_blocks" ("page_id")  (0.1ms) CREATE TABLE "redditor_video_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "width" integer, "height" integer, "youtube" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_video_blocks_on_page_id" ON "redditor_video_blocks" ("page_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130908122535"]]  (1.0ms) commit transaction Migrating to CreateArticles (20130908123351)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130908123351"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:08:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:14:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:14:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:15:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:20:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:20:34 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:20:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:23:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:25:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:25:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:26:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:27:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:28:43 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:28:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:28:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:36:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:39:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:40:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 13:44:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 13:44:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:35 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.8ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (0.9ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (4.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:06:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (0.9ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:07:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (25.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (0.9ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:08:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (0.9ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (3.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:09:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (1.0ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:10:00 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:10:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:00 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:10:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:10:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.haml (0.9ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:10:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:10:38 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:10:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:10:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:10:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (22.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (10.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.9ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (10.0ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:12:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (8.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:13:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (9.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:14:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:15:26 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:15:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:26 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:15:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (9.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:15:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (8.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (8.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:57 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered articles/show.html.erb (8.6ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:17:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (29.8ms) Rendered articles/show.html.erb (36.9ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:19:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (12.3ms) Rendered articles/show.html.erb (18.9ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (35.9ms) Rendered articles/show.html.erb (46.9ms)  (3.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:20:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (46.2ms) Rendered collection (61.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (82.6ms) Rendered articles/show.html.erb (88.9ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (18.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (25.3ms) Rendered articles/show.html.erb (31.2ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (23.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (31.1ms) Rendered articles/show.html.erb (37.3ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (25.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (49.3ms) Rendered articles/show.html.erb (55.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:33 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:28:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:28:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:28:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:28:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:29:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (22.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (27.0ms) Rendered articles/show.html.erb (32.9ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.4ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.7ms) Rendered collection (26.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (31.6ms) Rendered articles/show.html.erb (38.9ms)  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (22.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (42.0ms) Rendered articles/show.html.erb (47.9ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:30:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (20.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (24.0ms) Rendered articles/show.html.erb (29.8ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:31:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (22.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (46.8ms) Rendered articles/show.html.erb (52.9ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (23.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (43.3ms) Rendered articles/show.html.erb (49.3ms)  (1.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:31:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (21.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (42.1ms) Rendered articles/show.html.erb (47.9ms)  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:11 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:11 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (22.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (41.7ms) Rendered articles/show.html.erb (47.5ms)  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (21.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (25.0ms) Rendered articles/show.html.erb (31.4ms)  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:32:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (22.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (42.8ms) Rendered articles/show.html.erb (48.8ms)  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:33:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (23.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (47.0ms) Rendered articles/show.html.erb (53.6ms)  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (7.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (8.6ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (21.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (25.7ms) Rendered articles/show.html.erb (32.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (6.9ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Tue, 10 Sep 2013 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (7.9ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:43 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (23.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (27.0ms) Rendered articles/show.html.erb (34.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (7.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (7.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:12:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:12:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:15:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (24.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (45.6ms) Rendered articles/show.html.haml (54.0ms)  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (7.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.erb (6.9ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (22.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (26.5ms) Rendered articles/show.html.haml (34.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:17:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.0ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (27.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (47.3ms) Rendered articles/show.html.haml (54.3ms)  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.6ms)  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:18:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (27.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (31.4ms) Rendered articles/show.html.haml (38.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:19:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (28.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (33.8ms) Rendered articles/show.html.haml (41.3ms)  (3.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (26.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (47.5ms) Rendered articles/show.html.haml (54.4ms)  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.0ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:21:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (25.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (29.4ms) Rendered articles/show.html.haml (36.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:29:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:29:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (27.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (31.5ms) Rendered articles/show.html.haml (39.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (25.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (30.4ms) Rendered articles/show.html.haml (39.9ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.2ms)  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-11 15:42:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Rendered admin/articles/edit.html.haml (1.3ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (24.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (29.2ms) Rendered articles/show.html.haml (36.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (27.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (72.6ms) Rendered articles/show.html.haml (79.6ms)  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:42:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-11 15:42:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-11 15:45:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Rendered admin/articles/edit.html.haml (1.2ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (24.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (29.0ms) Rendered articles/show.html.haml (35.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 11:45:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (32.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (53.6ms) Rendered articles/show.html.haml (62.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (2.8ms) Rendered collection (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-11 17:33:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Wed, 11 Sep 2013 13:33:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.4ms) Completed 200 OK in 78ms (Views: 71.5ms | ActiveRecord: 1.1ms)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (19.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (37.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (66.9ms) Rendered articles/show.html.haml (78.3ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:52:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:52:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.3ms) Completed 500 Internal Server Error in 55ms  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (33.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.8ms) Rendered articles/show.html.haml (63.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:54:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:54:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.4ms) Completed 500 Internal Server Error in 45ms  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:55:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.3ms) Rendered admin/articles/edit.html.haml within layouts/application (46.1ms) Completed 200 OK in 390ms (Views: 338.8ms | ActiveRecord: 2.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (31.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.3ms) Rendered articles/show.html.haml (45.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:55:36 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.0ms) Rendered admin/articles/edit.html.haml within layouts/application (50.2ms) Completed 200 OK in 96ms (Views: 66.1ms | ActiveRecord: 2.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (26.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (30.7ms) Rendered articles/show.html.haml (36.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:55:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (6.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.2ms)  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:56:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.2ms) Rendered admin/articles/edit.html.haml within layouts/application (47.1ms) Completed 200 OK in 96ms (Views: 70.6ms | ActiveRecord: 2.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (35.6ms) Rendered articles/show.html.haml (41.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:56:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (32.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.7ms) Rendered articles/show.html.haml (47.8ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:03 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:57:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:03 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:57:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.7ms) Completed 500 Internal Server Error in 40ms  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-14 14:57:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.5ms) Rendered admin/articles/edit.html.haml within layouts/application (26.8ms) Completed 200 OK in 48ms (Views: 42.9ms | ActiveRecord: 1.2ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (32.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.7ms) Rendered articles/show.html.haml (43.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00], ["title", "Test article"], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Sat, 14 Sep 2013 10:57:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.7ms) rollback transaction  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateArticles (20130908123351)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130908123351"]]  (0.9ms) commit transaction Migrating to CreateRedditorImages (20130916155124)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "src" varchar(255), "description" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_type" ON "redditor_images" ("imageable_type")  (0.1ms) CREATE INDEX "index_redditor_images_on_imageable_id" ON "redditor_images" ("imageable_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916155124"]]  (0.8ms) commit transaction Migrating to CreateRedditorPages (20130916155156)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "pageable_id" integer, "pageable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_pages_on_pageable_type" ON "redditor_pages" ("pageable_type")  (0.1ms) CREATE INDEX "index_redditor_pages_on_pageable_id" ON "redditor_pages" ("pageable_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916155156"]]  (0.8ms) commit transaction Migrating to CreateRedditorSliderBlocks (20130916155219)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_slider_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_slider_blocks_on_page_id" ON "redditor_slider_blocks" ("page_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916155219"]]  (0.8ms) commit transaction Migrating to CreateRedditorTextBlocks (20130916155239)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_text_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "body" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_redditor_text_blocks_on_page_id" ON "redditor_text_blocks" ("page_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916155239"]]  (0.8ms) commit transaction Migrating to CreateRedditorVideoBlocks (20130916155301)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "redditor_video_blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "position" integer, "width" integer, "height" integer, "youtube" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_redditor_video_blocks_on_page_id" ON "redditor_video_blocks" ("page_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916155301"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:02:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.3ms) Rendered admin/articles/edit.html.haml within layouts/application (59.8ms) Completed 200 OK in 127ms (Views: 93.9ms | ActiveRecord: 2.4ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (36.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (42.5ms) Rendered articles/show.html.haml (51.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:02:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:05:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:05:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:08 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.3ms) Rendered admin/articles/edit.html.haml within layouts/application (47.5ms) Completed 200 OK in 88ms (Views: 62.3ms | ActiveRecord: 2.1ms)  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:17 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:05:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:05:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:17 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:05:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.8ms) Rendered admin/articles/edit.html.haml within layouts/application (47.2ms) Completed 200 OK in 87ms (Views: 61.3ms | ActiveRecord: 2.2ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:05:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:05:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:39 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:05:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.9ms) Rendered admin/articles/edit.html.haml within layouts/application (47.9ms) Completed 200 OK in 89ms (Views: 63.0ms | ActiveRecord: 2.3ms)  (1.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:56 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:05:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:05:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:05:56 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:05:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.5ms) Rendered admin/articles/edit.html.haml within layouts/application (51.4ms) Completed 200 OK in 95ms (Views: 66.7ms | ActiveRecord: 2.7ms)  (1.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:06:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:06:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:06:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:06:26 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:06:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.2ms) Rendered admin/articles/edit.html.haml within layouts/application (46.7ms) Completed 200 OK in 91ms (Views: 64.5ms | ActiveRecord: 2.2ms)  (2.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:06:34 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:06:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:06:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:06:34 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:06:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.5ms) Rendered admin/articles/edit.html.haml within layouts/application (46.8ms) Completed 200 OK in 119ms (Views: 61.3ms | ActiveRecord: 2.5ms) Started GET "/redditor/admin/pages/1/text_blocks/new" for 127.0.0.1 at 2013-09-16 20:06:34 +0400 Processing by Redditor::Admin::TextBlocksController#new as HTML Parameters: {"page_id"=>"1"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1"]] Completed 400 Bad Request in 2ms  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:09:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:49 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.0ms) Rendered admin/articles/edit.html.haml within layouts/application (50.3ms) Completed 200 OK in 94ms (Views: 66.0ms | ActiveRecord: 2.4ms) Started GET "/redditor/admin/pages/1/text_blocks/new" for 127.0.0.1 at 2013-09-16 20:09:50 +0400 Processing by Redditor::Admin::TextBlocksController#new as HTML Parameters: {"page_id"=>"1"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1"]] Completed 400 Bad Request in 2ms  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (34.0ms) Rendered articles/show.html.haml (40.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:10:12 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.3ms) Rendered admin/articles/edit.html.haml within layouts/application (26.4ms) Completed 200 OK in 51ms (Views: 45.6ms | ActiveRecord: 1.0ms) Started GET "/redditor/admin/pages/1/text_blocks/new" for 127.0.0.1 at 2013-09-16 20:10:12 +0400 Processing by Redditor::Admin::TextBlocksController#new as HTML Parameters: {"page_id"=>"1"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 2ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (27.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (31.1ms) Rendered articles/show.html.haml (36.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.6ms)  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (32.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (52.9ms) Rendered articles/show.html.haml (61.6ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:10:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1], ["pageable_type", "Article"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00], ["pageable_id", 1], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.0ms) Completed 200 OK in 68ms (Views: 62.5ms | ActiveRecord: 1.0ms) Started GET "/redditor/admin/pages/1/text_blocks/new" for 127.0.0.1 at 2013-09-16 20:10:51 +0400 Processing by Redditor::Admin::TextBlocksController#new as HTML Parameters: {"page_id"=>"1"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1"]] Completed 400 Bad Request in 2ms  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:11:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:11:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:11:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:02 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:12:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (30.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (34.5ms) Rendered articles/show.html.haml (43.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.5ms)  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:13:56 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:13:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:13:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (2.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:14:11 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:14:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:14:12 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:14:23 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:14:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (1.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "articles"  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:14:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:14:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:14:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (1.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Article Load (0.1ms) SELECT "articles".* FROM "articles"  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:14:53 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:14:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (2.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "articles" Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:15:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (29.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.0ms) Rendered articles/show.html.haml (62.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 7"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 8"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 9"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 10"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00], ["description", "image name 11"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["description", "image name 12"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["description", "image name 13"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["description", "image name 14"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["description", "image name 15"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["page_id", 1], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["height", 480], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:15:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.0ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.0ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "articles" Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:16:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (1.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Article Load (0.1ms) SELECT "articles".* FROM "articles" Started GET "/admin/articles/1/edit" for 127.0.0.1 at 2013-09-16 20:16:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 3ms  (1.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["page_id", 1], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 1"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 2"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 3"], ["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1 [["pageable_type", "Article"], ["pageable_id", 1], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 1], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["height", 480], ["page_id", 2], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 2 [["pageable_type", "Article"], ["pageable_id", 2], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 2]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 2]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 2], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 2]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["page_id", 3], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 3 [["pageable_type", "Article"], ["pageable_id", 3], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 3]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 3]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 3], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["page_id", 4], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 4"], ["imageable_id", 2], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 5"], ["imageable_id", 2], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["description", "image name 6"], ["imageable_id", 2], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["page_id", 4], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["height", 480], ["page_id", 4], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 4 [["pageable_type", "Article"], ["pageable_id", 4], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 4]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 4]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 4], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:49 UTC +00:00]]  (0.6ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" Started GET "/admin/articles/5/edit" for 127.0.0.1 at 2013-09-16 20:16:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"5"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "5"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 5], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["pageable_id", 5], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 5]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 5]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 5], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 5]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.8ms) Rendered admin/articles/edit.html.haml within layouts/application (37.7ms) Completed 200 OK in 66ms (Views: 55.7ms | ActiveRecord: 3.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:16:51 +0400 Started GET "/stylesheets/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:16:51 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:16:51 +0400 Started GET "/javascripts/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:16:51 +0400 Started GET "/redditor/admin/pages/5/text_blocks/new?content_block%5Btemp_id%5D=1379348211564" for 127.0.0.1 at 2013-09-16 20:16:51 +0400  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["page_id", 6], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (1.2ms) commit transaction Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379348211564"}, "page_id"=>"5"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "5"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 5]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 5], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (44.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (106.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (117.2ms) Completed 200 OK in 131ms (Views: 123.6ms | ActiveRecord: 1.7ms)  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["description", "image name 7"], ["imageable_id", 3], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["description", "image name 8"], ["imageable_id", 3], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["description", "image name 9"], ["imageable_id", 3], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["page_id", 6], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["height", 480], ["page_id", 6], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 6 [["pageable_type", "Article"], ["pageable_id", 6], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 6]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 6]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 6], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 6]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 3], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (31.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.1ms) Rendered articles/show.html.haml (42.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["page_id", 7], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00], ["description", "image name 10"], ["imageable_id", 4], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["description", "image name 11"], ["imageable_id", 4], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["description", "image name 12"], ["imageable_id", 4], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["page_id", 7], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["height", 480], ["page_id", 7], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 7 [["pageable_type", "Article"], ["pageable_id", 7], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 7]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 7]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 7], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 7]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 4], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["page_id", 8], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["description", "image name 13"], ["imageable_id", 5], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["description", "image name 14"], ["imageable_id", 5], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["description", "image name 15"], ["imageable_id", 5], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["page_id", 8], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["height", 480], ["page_id", 8], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 8 [["pageable_type", "Article"], ["pageable_id", 8], ["updated_at", Mon, 16 Sep 2013 16:16:52 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 8]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 8]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 8], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 8]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 5], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (12.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:43 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:43 UTC +00:00]]  (0.7ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" Started GET "/admin/articles/9/edit" for 127.0.0.1 at 2013-09-16 20:18:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"9"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "9"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 9], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:45 UTC +00:00], ["pageable_id", 9], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:18:45 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 9]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 9]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 9], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 9]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.6ms) Rendered admin/articles/edit.html.haml within layouts/application (57.1ms) Completed 200 OK in 115ms (Views: 75.5ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:18:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:18:45 +0400 Started GET "/javascripts/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:18:45 +0400 Started GET "/stylesheets/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:18:45 +0400 Started GET "/redditor/admin/pages/9/text_blocks/new?content_block%5Btemp_id%5D=1379348325939" for 127.0.0.1 at 2013-09-16 20:18:45 +0400  (0.6ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:45 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:45 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Processing by Redditor::Admin::TextBlocksController#new as JS SQL (0.9ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 10], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] Parameters: {"content_block"=>{"temp_id"=>"1379348325939"}, "page_id"=>"9"}  (1.0ms) commit transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "9"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 10 [["pageable_type", "Article"], ["pageable_id", 10], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 10]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 10]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 10], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 10]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["height", 480], ["page_id", 11], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) commit transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 9], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 11 [["pageable_type", "Article"], ["pageable_id", 11], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 11]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 11]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 11], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 11]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms)  (0.1ms) begin transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (26.7ms) SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (42.8ms)  (0.8ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (104.8ms)  (0.2ms) begin transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (127.6ms) SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 12], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] Completed 200 OK in 150ms (Views: 145.6ms | ActiveRecord: 0.5ms)  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 1"], ["imageable_id", 6], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 2"], ["imageable_id", 6], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 3"], ["imageable_id", 6], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 12], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["height", 480], ["page_id", 12], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 12 [["pageable_type", "Article"], ["pageable_id", 12], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 12]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 12]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 12], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 12]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 13], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 4"], ["imageable_id", 7], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 5"], ["imageable_id", 7], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 6"], ["imageable_id", 7], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 13 [["pageable_type", "Article"], ["pageable_id", 13], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 13]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 13]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 13], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 13]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 7], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 14], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 8], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 8], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 8], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 14], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["height", 480], ["page_id", 14], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 14 [["pageable_type", "Article"], ["pageable_id", 14], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 14]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 14]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 14], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 14]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 8], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (30.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (34.9ms) Rendered articles/show.html.haml (41.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 15], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 10"], ["imageable_id", 9], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 11"], ["imageable_id", 9], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 12"], ["imageable_id", 9], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 15], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["height", 480], ["page_id", 15], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 15 [["pageable_type", "Article"], ["pageable_id", 15], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 15]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 15]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 15], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 15]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 9], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.6ms) Rendered collection (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["page_id", 16], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 13"], ["imageable_id", 10], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00], ["description", "image name 14"], ["imageable_id", 10], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00], ["description", "image name 15"], ["imageable_id", 10], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00], ["page_id", 16], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00], ["height", 480], ["page_id", 16], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 16 [["pageable_type", "Article"], ["pageable_id", 16], ["updated_at", Mon, 16 Sep 2013 16:18:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 16]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 16]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 16], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 16]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 10], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:18:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:18:59 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/17/edit" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"17"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "17"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 17], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:19:01 UTC +00:00], ["pageable_id", 17], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:19:01 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 17]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 17]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 17], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 17]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.0ms) Rendered admin/articles/edit.html.haml within layouts/application (51.0ms) Completed 200 OK in 100ms (Views: 67.6ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Started GET "/stylesheets/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Started GET "/javascripts/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Started GET "/redditor/admin/pages/17/text_blocks/new?content_block%5Btemp_id%5D=1379348341635" for 127.0.0.1 at 2013-09-16 20:19:01 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379348341635"}, "page_id"=>"17"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "17"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 17]] Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 17], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (51.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (58.4ms) Completed 200 OK in 87ms (Views: 64.2ms | ActiveRecord: 2.0ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 18], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 1"], ["imageable_id", 11], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 2"], ["imageable_id", 11], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 3"], ["imageable_id", 11], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 18], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["height", 480], ["page_id", 18], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 18 [["pageable_type", "Article"], ["pageable_id", 18], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 18]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 18]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 18], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 18]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 11], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (32.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.5ms) Rendered articles/show.html.haml (64.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 19], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 4"], ["imageable_id", 12], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 5"], ["imageable_id", 12], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 6"], ["imageable_id", 12], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 19], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["height", 480], ["page_id", 19], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 19 [["pageable_type", "Article"], ["pageable_id", 19], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 19]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 19]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 19], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 19]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 12], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 20], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 13], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 13], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 13], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 20], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["height", 480], ["page_id", 20], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 20 [["pageable_type", "Article"], ["pageable_id", 20], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 20]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 20]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 20], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 20]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 13], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["page_id", 21], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00], ["description", "image name 10"], ["imageable_id", 14], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["description", "image name 11"], ["imageable_id", 14], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["description", "image name 12"], ["imageable_id", 14], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["page_id", 21], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["height", 480], ["page_id", 21], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 21 [["pageable_type", "Article"], ["pageable_id", 21], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 21]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 21]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 21], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 21]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["height", 480], ["page_id", 22], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 22 [["pageable_type", "Article"], ["pageable_id", 22], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 22]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 22]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 22], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 22]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["page_id", 23], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 23 [["pageable_type", "Article"], ["pageable_id", 23], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 23]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 23]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 23], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 23]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["page_id", 24], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["description", "image name 13"], ["imageable_id", 15], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["description", "image name 14"], ["imageable_id", 15], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["description", "image name 15"], ["imageable_id", 15], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 24 [["pageable_type", "Article"], ["pageable_id", 24], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 24]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 24]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 24], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 24]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 15], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:29:47 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/25/edit" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"25"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "25"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 25], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:29:49 UTC +00:00], ["pageable_id", 25], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:29:49 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 25]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 25]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 25], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 25]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.8ms) Completed 200 OK in 70ms (Views: 57.6ms | ActiveRecord: 3.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Started GET "/javascripts/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Started GET "/stylesheets/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Started GET "/redditor/admin/pages/25/text_blocks/new?content_block%5Btemp_id%5D=1379348989400" for 127.0.0.1 at 2013-09-16 20:29:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379348989400"}, "page_id"=>"25"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "25"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 25]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 25], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (46.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (63.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (86.7ms) Completed 200 OK in 104ms (Views: 99.6ms | ActiveRecord: 1.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 26], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 1"], ["imageable_id", 16], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 2"], ["imageable_id", 16], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 3"], ["imageable_id", 16], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 26], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["height", 480], ["page_id", 26], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 26 [["pageable_type", "Article"], ["pageable_id", 26], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 26]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 26]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 26], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 26]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 16], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (33.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (59.3ms) Rendered articles/show.html.haml (68.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 27], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 4"], ["imageable_id", 17], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 5"], ["imageable_id", 17], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 6"], ["imageable_id", 17], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 27], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["height", 480], ["page_id", 27], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 27 [["pageable_type", "Article"], ["pageable_id", 27], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 27]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 27]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 27], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 27]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 17], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 28], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 7"], ["imageable_id", 18], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 8"], ["imageable_id", 18], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 9"], ["imageable_id", 18], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 28], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["height", 480], ["page_id", 28], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 28 [["pageable_type", "Article"], ["pageable_id", 28], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 28]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 28]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 28], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 28]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 18], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 29], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 10"], ["imageable_id", 19], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 11"], ["imageable_id", 19], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 12"], ["imageable_id", 19], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 29], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["height", 480], ["page_id", 29], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 29 [["pageable_type", "Article"], ["pageable_id", 29], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 29]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 29]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 29], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 29]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["height", 480], ["page_id", 30], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 30 [["pageable_type", "Article"], ["pageable_id", 30], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 30]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 30]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 30], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 30]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 31], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 31 [["pageable_type", "Article"], ["pageable_id", 31], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 31]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 31]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 31], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 31]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["page_id", 32], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00], ["description", "image name 13"], ["imageable_id", 20], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:42 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00], ["description", "image name 14"], ["imageable_id", 20], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00], ["description", "image name 15"], ["imageable_id", 20], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 32 [["pageable_type", "Article"], ["pageable_id", 32], ["updated_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 32]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 32]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 32], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 32]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 20], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:33:43 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/33/edit" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"33"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "33"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 33], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (13.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:33:45 UTC +00:00], ["pageable_id", 33], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:33:45 UTC +00:00]]  (14.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 33]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 33]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 33], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 33]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.6ms) Completed 200 OK in 126ms (Views: 89.0ms | ActiveRecord: 30.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Started GET "/stylesheets/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Started GET "/javascripts/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Started GET "/redditor/admin/pages/33/text_blocks/new?content_block%5Btemp_id%5D=1379349225297" for 127.0.0.1 at 2013-09-16 20:33:45 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349225297"}, "page_id"=>"33"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "33"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 33]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 33], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (15.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (30.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (55.0ms) Completed 200 OK in 72ms (Views: 68.6ms | ActiveRecord: 0.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 34], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 1"], ["imageable_id", 21], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.5ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 2"], ["imageable_id", 21], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 21], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 34], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["height", 480], ["page_id", 34], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 34 [["pageable_type", "Article"], ["pageable_id", 34], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 34]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 34]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 34], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 34]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 21], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (64.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (92.9ms) Rendered articles/show.html.haml (102.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 35], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 4"], ["imageable_id", 22], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 5"], ["imageable_id", 22], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 6"], ["imageable_id", 22], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 35], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["height", 480], ["page_id", 35], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 35 [["pageable_type", "Article"], ["pageable_id", 35], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 35]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 35]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 35], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 35]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 22], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 36], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 7"], ["imageable_id", 23], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 8"], ["imageable_id", 23], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 9"], ["imageable_id", 23], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 36], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["height", 480], ["page_id", 36], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 36 [["pageable_type", "Article"], ["pageable_id", 36], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 36]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 36]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 36], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 36]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 23], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["page_id", 37], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 10"], ["imageable_id", 24], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 24], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["description", "image name 12"], ["imageable_id", 24], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["page_id", 37], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["height", 480], ["page_id", 37], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 37 [["pageable_type", "Article"], ["pageable_id", 37], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 37]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 37]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 37], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 37]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["page_id", 38], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["description", "image name 13"], ["imageable_id", 25], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["description", "image name 14"], ["imageable_id", 25], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["description", "image name 15"], ["imageable_id", 25], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 38 [["pageable_type", "Article"], ["pageable_id", 38], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 38]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 38]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 38], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 38]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 25], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["height", 480], ["page_id", 39], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 39 [["pageable_type", "Article"], ["pageable_id", 39], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 39]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 39]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 39], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 39]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["page_id", 40], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 40 [["pageable_type", "Article"], ["pageable_id", 40], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 40]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 40]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 40], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 40]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:36:26 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/41/edit" for 127.0.0.1 at 2013-09-16 20:36:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"41"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "41"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 41], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:36:28 UTC +00:00], ["pageable_id", 41], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:36:28 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 41]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 41]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 41], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 41]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.6ms) Completed 200 OK in 1485ms (Views: 1472.7ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:36:29 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:36:29 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:36:29 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:36:29 +0400 Started GET "/redditor/admin/pages/41/text_blocks/new?content_block%5Btemp_id%5D=1379349389620" for 127.0.0.1 at 2013-09-16 20:36:29 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349389620"}, "page_id"=>"41"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "41"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 41]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 41], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.4ms) Completed in 64ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["height", 480], ["page_id", 42], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 42 [["pageable_type", "Article"], ["pageable_id", 42], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 42]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 42]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 42], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 42]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["page_id", 43], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 1"], ["imageable_id", 26], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 2"], ["imageable_id", 26], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 3"], ["imageable_id", 26], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 43 [["pageable_type", "Article"], ["pageable_id", 43], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 43]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 43]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 43], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 43]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 26], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["page_id", 44], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 44 [["pageable_type", "Article"], ["pageable_id", 44], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 44]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 44]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 44], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 44]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["page_id", 45], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 4"], ["imageable_id", 27], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 5"], ["imageable_id", 27], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["description", "image name 6"], ["imageable_id", 27], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["page_id", 45], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["height", 480], ["page_id", 45], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 45 [["pageable_type", "Article"], ["pageable_id", 45], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 45]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 45]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 45], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 45]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:07 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/46/edit" for 127.0.0.1 at 2013-09-16 20:39:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"46"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "46"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 46], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00], ["pageable_id", 46], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00]]  (1.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 46]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 46]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 46], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 46]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.7ms) Rendered admin/articles/edit.html.haml within layouts/application (39.8ms) Completed 200 OK in 65ms (Views: 54.2ms | ActiveRecord: 4.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:39:09 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:39:09 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:39:09 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:39:09 +0400 Started GET "/redditor/admin/pages/46/text_blocks/new?content_block%5Btemp_id%5D=1379349549867" for 127.0.0.1 at 2013-09-16 20:39:09 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00], ["page_id", 47], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:09 UTC +00:00]]  (0.8ms) commit transaction Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349549867"}, "page_id"=>"46"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "46"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 46]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 46], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.1ms) Completed 200 OK in 60ms (Views: 55.9ms | ActiveRecord: 1.1ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 7"], ["imageable_id", 28], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 8"], ["imageable_id", 28], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 9"], ["imageable_id", 28], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["page_id", 47], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["height", 480], ["page_id", 47], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 47 [["pageable_type", "Article"], ["pageable_id", 47], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 47]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 47]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 47], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 47]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 28], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (34.7ms) Rendered collection (63.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (68.8ms) Rendered articles/show.html.haml (75.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["page_id", 48], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 10"], ["imageable_id", 29], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 11"], ["imageable_id", 29], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 12"], ["imageable_id", 29], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["page_id", 48], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["height", 480], ["page_id", 48], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 48 [["pageable_type", "Article"], ["pageable_id", 48], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 48]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 48]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 48], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 48]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 29], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["page_id", 49], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 13"], ["imageable_id", 30], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 14"], ["imageable_id", 30], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["description", "image name 15"], ["imageable_id", 30], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["page_id", 49], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["height", 480], ["page_id", 49], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 49 [["pageable_type", "Article"], ["pageable_id", 49], ["updated_at", Mon, 16 Sep 2013 16:39:10 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 49]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 49]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 49], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 49]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 30], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:19 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:19 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/50/edit" for 127.0.0.1 at 2013-09-16 20:39:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"50"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "50"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 50], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:20 UTC +00:00], ["pageable_id", 50], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:39:20 UTC +00:00]]  (2.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 50]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 50]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 50], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 50]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.5ms) Rendered admin/articles/edit.html.haml within layouts/application (60.4ms) Completed 200 OK in 113ms (Views: 77.9ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 Started GET "/redditor/admin/pages/50/text_blocks/new?content_block%5Btemp_id%5D=1379349561171" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349561171"}, "page_id"=>"50"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "50"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 50]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 50], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.8ms) Completed 200 OK in 73ms (Views: 57.0ms | ActiveRecord: 0.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:39:21 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:39:29 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/51/edit" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"51"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "51"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 51], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:39:31 UTC +00:00], ["pageable_id", 51], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:39:31 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 51]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 51]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 51], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 51]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.0ms) Rendered admin/articles/edit.html.haml within layouts/application (63.5ms) Completed 200 OK in 114ms (Views: 80.1ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Started GET "/redditor/admin/pages/51/text_blocks/new?content_block%5Btemp_id%5D=1379349571873" for 127.0.0.1 at 2013-09-16 20:39:31 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349571873"}, "page_id"=>"51"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "51"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 51]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 51], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.0ms) Completed 200 OK in 73ms (Views: 55.9ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:39:32 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:41:43 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:41:43 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/52/edit" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"52"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "52"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 52], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:41:45 UTC +00:00], ["pageable_id", 52], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:41:45 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 52]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 52]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 52], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 52]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (37.6ms) Rendered admin/articles/edit.html.haml within layouts/application (65.6ms) Completed 200 OK in 122ms (Views: 83.6ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Started GET "/redditor/admin/pages/52/text_blocks/new?content_block%5Btemp_id%5D=1379349705763" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349705763"}, "page_id"=>"52"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "52"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 52]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 52], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (53.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (60.9ms) Completed 200 OK in 85ms (Views: 67.0ms | ActiveRecord: 1.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:41:45 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:42:17 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:42:17 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/53/edit" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"53"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "53"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 53], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:42:19 UTC +00:00], ["pageable_id", 53], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:42:19 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 53]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 53]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 53], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 53]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.3ms) Rendered admin/articles/edit.html.haml within layouts/application (60.2ms) Completed 200 OK in 118ms (Views: 74.7ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Started GET "/redditor/admin/pages/53/text_blocks/new?content_block%5Btemp_id%5D=1379349739604" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349739604"}, "page_id"=>"53"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "53"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 53]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 53], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.7ms) Completed 200 OK in 75ms (Views: 57.6ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:42:19 +0400 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:43:04 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/54/edit" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"54"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "54"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 54], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:06 UTC +00:00], ["pageable_id", 54], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:43:06 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 54]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 54]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 54], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 54]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.7ms) Rendered admin/articles/edit.html.haml within layouts/application (57.0ms) Completed 200 OK in 104ms (Views: 71.0ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Started GET "/redditor/admin/pages/54/text_blocks/new?content_block%5Btemp_id%5D=1379349786309" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349786309"}, "page_id"=>"54"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "54"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 54]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 54], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.7ms) Completed 200 OK in 74ms (Views: 56.9ms | ActiveRecord: 1.4ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:43:06 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:16 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:43:16 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/55/edit" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"55"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "55"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 55], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:18 UTC +00:00], ["pageable_id", 55], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:43:18 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 55]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 55]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 55], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 55]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.5ms) Rendered admin/articles/edit.html.haml within layouts/application (57.3ms) Completed 200 OK in 104ms (Views: 71.2ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Started GET "/redditor/admin/pages/55/text_blocks/new?content_block%5Btemp_id%5D=1379349798968" for 127.0.0.1 at 2013-09-16 20:43:18 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349798968"}, "page_id"=>"55"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "55"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 55]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 55], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (53.1ms) Completed 200 OK in 79ms (Views: 58.8ms | ActiveRecord: 1.9ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:43:19 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:43:40 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/56/edit" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"56"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "56"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 56], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:42 UTC +00:00], ["pageable_id", 56], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:43:42 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 56]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 56]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 56], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 56]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.5ms) Rendered admin/articles/edit.html.haml within layouts/application (57.3ms) Completed 200 OK in 104ms (Views: 71.4ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Started GET "/redditor/admin/pages/56/text_blocks/new?content_block%5Btemp_id%5D=1379349822459" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349822459"}, "page_id"=>"56"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "56"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 56]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 56], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (48.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (56.5ms) Completed 200 OK in 80ms (Views: 62.9ms | ActiveRecord: 1.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:43:42 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:54 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:43:54 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/57/edit" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"57"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "57"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 57], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:43:56 UTC +00:00], ["pageable_id", 57], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:43:56 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 57]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 57]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 57], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 57]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.2ms) Rendered admin/articles/edit.html.haml within layouts/application (57.8ms) Completed 200 OK in 107ms (Views: 72.0ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Started GET "/redditor/admin/pages/57/text_blocks/new?content_block%5Btemp_id%5D=1379349836920" for 127.0.0.1 at 2013-09-16 20:43:56 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349836920"}, "page_id"=>"57"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "57"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 57]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 57], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.3ms) Completed 200 OK in 75ms (Views: 57.4ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:43:57 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:44:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:44:05 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/58/edit" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"58"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "58"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 58], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:44:07 UTC +00:00], ["pageable_id", 58], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:44:07 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 58]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 58]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 58], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 58]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.6ms) Rendered admin/articles/edit.html.haml within layouts/application (59.3ms) Completed 200 OK in 106ms (Views: 73.2ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Started GET "/redditor/admin/pages/58/text_blocks/new?content_block%5Btemp_id%5D=1379349847366" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349847366"}, "page_id"=>"58"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "58"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 58]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 58], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.5ms) Completed 200 OK in 77ms (Views: 58.5ms | ActiveRecord: 1.4ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:44:07 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:44:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:44:21 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/59/edit" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"59"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "59"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 59], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:44:23 UTC +00:00], ["pageable_id", 59], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:44:23 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 59]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 59]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 59], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 59]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.9ms) Rendered admin/articles/edit.html.haml within layouts/application (59.8ms) Completed 200 OK in 108ms (Views: 73.9ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Started GET "/redditor/admin/pages/59/text_blocks/new?content_block%5Btemp_id%5D=1379349863830" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379349863830"}, "page_id"=>"59"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "59"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 59]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 59], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (47.6ms) Completed 200 OK in 68ms (Views: 53.7ms | ActiveRecord: 0.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:44:23 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:07 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:07 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/60/edit" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"60"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "60"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 60], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:09 UTC +00:00], ["pageable_id", 60], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:48:09 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 60]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 60]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 60], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 60]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.5ms) Rendered admin/articles/edit.html.haml within layouts/application (57.5ms) Completed 200 OK in 106ms (Views: 73.0ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Started GET "/redditor/admin/pages/60/text_blocks/new?content_block%5Btemp_id%5D=1379350089884" for 127.0.0.1 at 2013-09-16 20:48:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350089884"}, "page_id"=>"60"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "60"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 60]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 60], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.9ms) Completed 200 OK in 71ms (Views: 55.2ms | ActiveRecord: 1.2ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:48:10 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00], ["height", 480], ["page_id", 61], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 61 [["pageable_type", "Article"], ["pageable_id", 61], ["updated_at", Mon, 16 Sep 2013 16:48:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 61]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 61]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 61], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 61]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["page_id", 62], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 1"], ["imageable_id", 31], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 2"], ["imageable_id", 31], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 3"], ["imageable_id", 31], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 62 [["pageable_type", "Article"], ["pageable_id", 62], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 62]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 62]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 62], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 62]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 31], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["page_id", 63], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 63 [["pageable_type", "Article"], ["pageable_id", 63], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 63]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 63]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 63], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 63]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["page_id", 64], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 4"], ["imageable_id", 32], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 5"], ["imageable_id", 32], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["description", "image name 6"], ["imageable_id", 32], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["page_id", 64], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["height", 480], ["page_id", 64], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 64 [["pageable_type", "Article"], ["pageable_id", 64], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 64]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 64]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 64], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 64]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:28 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/65/edit" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"65"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "65"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 65], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["pageable_id", 65], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 65]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 65]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 65], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 65]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.2ms) Rendered admin/articles/edit.html.haml within layouts/application (38.1ms) Completed 200 OK in 65ms (Views: 52.3ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Started GET "/redditor/admin/pages/65/text_blocks/new?content_block%5Btemp_id%5D=1379350110471" for 127.0.0.1 at 2013-09-16 20:48:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350110471"}, "page_id"=>"65"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "65"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 65]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 65], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (47.6ms) Completed 200 OK in 57ms (Views: 54.2ms | ActiveRecord: 0.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:48:30 +0400  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["page_id", 66], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 33], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 8"], ["imageable_id", 33], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 33], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["page_id", 66], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["height", 480], ["page_id", 66], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 66 [["pageable_type", "Article"], ["pageable_id", 66], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 66]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 66]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 66], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 66]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 33], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (35.8ms) Rendered collection (63.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (67.6ms) Rendered articles/show.html.haml (74.0ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["page_id", 67], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 34], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 34], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 34], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["page_id", 67], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["height", 480], ["page_id", 67], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 67 [["pageable_type", "Article"], ["pageable_id", 67], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 67]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 67]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 67], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 67]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 34], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.0ms) Rendered collection (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (14.3ms)  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["page_id", 68], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["description", "image name 13"], ["imageable_id", 35], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 35], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 35], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["page_id", 68], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["height", 480], ["page_id", 68], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 68 [["pageable_type", "Article"], ["pageable_id", 68], ["updated_at", Mon, 16 Sep 2013 16:48:31 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 68]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 68]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 68], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 68]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 35], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:54 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:48:54 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/69/edit" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"69"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "69"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 69], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:48:56 UTC +00:00], ["pageable_id", 69], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:48:56 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 69]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 69]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 69], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 69]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.4ms) Rendered admin/articles/edit.html.haml within layouts/application (57.4ms) Completed 200 OK in 104ms (Views: 71.3ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Started GET "/redditor/admin/pages/69/text_blocks/new?content_block%5Btemp_id%5D=1379350136953" for 127.0.0.1 at 2013-09-16 20:48:56 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350136953"}, "page_id"=>"69"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "69"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 69]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 69], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.9ms) Completed 200 OK in 72ms (Views: 55.0ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:48:57 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:51:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:51:36 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/70/edit" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"70"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "70"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 70], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:51:38 UTC +00:00], ["pageable_id", 70], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:51:38 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 70]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 70]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 70], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 70]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.2ms) Rendered admin/articles/edit.html.haml within layouts/application (65.6ms) Completed 200 OK in 114ms (Views: 81.3ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Started GET "/redditor/admin/pages/70/text_blocks/new?content_block%5Btemp_id%5D=1379350298344" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350298344"}, "page_id"=>"70"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "70"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 70]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 70], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (14.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (57.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (66.1ms) Completed 200 OK in 95ms (Views: 73.8ms | ActiveRecord: 2.0ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:51:38 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:52:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:52:47 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/71/edit" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"71"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "71"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 71], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:52:49 UTC +00:00], ["pageable_id", 71], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:52:49 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 71]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 71]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 71], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 71]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.8ms) Rendered admin/articles/edit.html.haml within layouts/application (58.2ms) Completed 200 OK in 108ms (Views: 74.2ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Started GET "/redditor/admin/pages/71/text_blocks/new?content_block%5Btemp_id%5D=1379350369988" for 127.0.0.1 at 2013-09-16 20:52:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350369988"}, "page_id"=>"71"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "71"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 71]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 71], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.1ms) Completed 200 OK in 70ms (Views: 54.1ms | ActiveRecord: 0.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:52:50 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:53:09 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:53:09 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/72/edit" for 127.0.0.1 at 2013-09-16 20:53:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"72"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "72"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 72], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:53:11 UTC +00:00], ["pageable_id", 72], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:53:11 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 72]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 72]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 72], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 72]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.6ms) Rendered admin/articles/edit.html.haml within layouts/application (56.6ms) Completed 200 OK in 105ms (Views: 70.1ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:53:11 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:53:11 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:53:11 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:53:11 +0400 Started GET "/redditor/admin/pages/72/text_blocks/new?content_block%5Btemp_id%5D=1379350392039" for 127.0.0.1 at 2013-09-16 20:53:12 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350392039"}, "page_id"=>"72"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "72"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 72]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 72], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.7ms) Completed 200 OK in 72ms (Views: 55.7ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:53:12 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:53:24 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/73/edit" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"73"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "73"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 73], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:53:26 UTC +00:00], ["pageable_id", 73], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:53:26 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 73]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 73]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 73], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 73]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.3ms) Rendered admin/articles/edit.html.haml within layouts/application (56.6ms) Completed 200 OK in 104ms (Views: 70.6ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Started GET "/redditor/admin/pages/73/text_blocks/new?content_block%5Btemp_id%5D=1379350406916" for 127.0.0.1 at 2013-09-16 20:53:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350406916"}, "page_id"=>"73"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "73"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 73]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 73], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.0ms) Completed 200 OK in 71ms (Views: 54.7ms | ActiveRecord: 1.4ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:53:27 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:54:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:54:00 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/74/edit" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"74"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "74"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 74], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:54:02 UTC +00:00], ["pageable_id", 74], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:54:02 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 74]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 74]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 74], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 74]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.4ms) Rendered admin/articles/edit.html.haml within layouts/application (56.9ms) Completed 200 OK in 103ms (Views: 70.8ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Started GET "/redditor/admin/pages/74/text_blocks/new?content_block%5Btemp_id%5D=1379350442451" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350442451"}, "page_id"=>"74"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "74"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 74]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 74], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.2ms) Completed 200 OK in 73ms (Views: 55.0ms | ActiveRecord: 1.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:54:02 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:54:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:54:21 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/75/edit" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"75"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "75"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 75], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:54:23 UTC +00:00], ["pageable_id", 75], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:54:23 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 75]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 75]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 75], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 75]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.9ms) Rendered admin/articles/edit.html.haml within layouts/application (56.6ms) Completed 200 OK in 102ms (Views: 70.4ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Started GET "/redditor/admin/pages/75/text_blocks/new?content_block%5Btemp_id%5D=1379350463292" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350463292"}, "page_id"=>"75"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "75"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 75]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 75], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (14.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (54.1ms) Completed 200 OK in 76ms (Views: 60.4ms | ActiveRecord: 0.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:54:23 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:28 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 76], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 1"], ["imageable_id", 36], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 2"], ["imageable_id", 36], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 3"], ["imageable_id", 36], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 76], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["height", 480], ["page_id", 76], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 76 [["pageable_type", "Article"], ["pageable_id", 76], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 76]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 76]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 76], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.3ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 76]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 36], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (34.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (58.9ms) Rendered articles/show.html.haml (68.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 77], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 4"], ["imageable_id", 37], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 5"], ["imageable_id", 37], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 6"], ["imageable_id", 37], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 77], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["height", 480], ["page_id", 77], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 77 [["pageable_type", "Article"], ["pageable_id", 77], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 77]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 77]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 77], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 77]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 37], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 78], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 7"], ["imageable_id", 38], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 8"], ["imageable_id", 38], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 9"], ["imageable_id", 38], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 78], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["height", 480], ["page_id", 78], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 78 [["pageable_type", "Article"], ["pageable_id", 78], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 78]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 78]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 78], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 78]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 38], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 79], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 10"], ["imageable_id", 39], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 11"], ["imageable_id", 39], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 12"], ["imageable_id", 39], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 79], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["height", 480], ["page_id", 79], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 79 [["pageable_type", "Article"], ["pageable_id", 79], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 79]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 79]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 79], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 79]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 80], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 13"], ["imageable_id", 40], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 14"], ["imageable_id", 40], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["description", "image name 15"], ["imageable_id", 40], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 80 [["pageable_type", "Article"], ["pageable_id", 80], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 80]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 80]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 80], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 80]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 40], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["height", 480], ["page_id", 81], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 81 [["pageable_type", "Article"], ["pageable_id", 81], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 81]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 81]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 81], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 81]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["page_id", 82], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 82 [["pageable_type", "Article"], ["pageable_id", 82], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 82]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 82]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 82], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 82]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:29 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/83/edit" for 127.0.0.1 at 2013-09-16 20:55:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"83"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "83"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 83], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:31 UTC +00:00], ["pageable_id", 83], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:55:31 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 83]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 83]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 83], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 83]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.3ms) Completed 200 OK in 90ms (Views: 78.9ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:55:31 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:55:31 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:55:31 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:55:31 +0400 Started GET "/redditor/admin/pages/83/text_blocks/new?content_block%5Btemp_id%5D=1379350532049" for 127.0.0.1 at 2013-09-16 20:55:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350532049"}, "page_id"=>"83"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "83"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 83]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 83], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.0ms) Completed 200 OK in 60ms (Views: 56.3ms | ActiveRecord: 1.2ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:55:32 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["height", 480], ["page_id", 84], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 84 [["pageable_type", "Article"], ["pageable_id", 84], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 84]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 84]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 84], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 84]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["page_id", 85], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 85 [["pageable_type", "Article"], ["pageable_id", 85], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 85]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 85]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 85], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 85]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["page_id", 86], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 41], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:44 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["description", "image name 2"], ["imageable_id", 41], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["description", "image name 3"], ["imageable_id", 41], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["page_id", 86], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["height", 480], ["page_id", 86], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 86 [["pageable_type", "Article"], ["pageable_id", 86], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 86]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 86]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 86], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 86]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["page_id", 87], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["description", "image name 4"], ["imageable_id", 42], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["description", "image name 5"], ["imageable_id", 42], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["description", "image name 6"], ["imageable_id", 42], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 87 [["pageable_type", "Article"], ["pageable_id", 87], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 87]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 87]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 87], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 87]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 42], ["imageable_type", "Redditor::SliderBlock"]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:45 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/88/edit" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"88"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "88"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 88], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:47 UTC +00:00], ["pageable_id", 88], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:55:47 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 88]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 88]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 88], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 88]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.5ms) Rendered admin/articles/edit.html.haml within layouts/application (47.1ms) Completed 200 OK in 76ms (Views: 64.3ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Started GET "/redditor/admin/pages/88/text_blocks/new?content_block%5Btemp_id%5D=1379350547216" for 127.0.0.1 at 2013-09-16 20:55:47 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350547216"}, "page_id"=>"88"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "88"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 88]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 88], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.3ms) Completed 200 OK in 62ms (Views: 59.0ms | ActiveRecord: 0.5ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:55:47 +0400  (0.4ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 89], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 7"], ["imageable_id", 43], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 8"], ["imageable_id", 43], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 9"], ["imageable_id", 43], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 89], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["height", 480], ["page_id", 89], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 89 [["pageable_type", "Article"], ["pageable_id", 89], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 89]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 89]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 89], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 89]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 43], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (37.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (45.2ms) Rendered articles/show.html.haml (52.0ms)  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 90], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 10"], ["imageable_id", 44], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 11"], ["imageable_id", 44], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 12"], ["imageable_id", 44], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 90], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["height", 480], ["page_id", 90], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 90 [["pageable_type", "Article"], ["pageable_id", 90], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 90]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 90]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 90], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 90]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 44], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.7ms) Rendered collection (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (15.0ms)  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 91], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 13"], ["imageable_id", 45], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 14"], ["imageable_id", 45], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["description", "image name 15"], ["imageable_id", 45], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["page_id", 91], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["height", 480], ["page_id", 91], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 91 [["pageable_type", "Article"], ["pageable_id", 91], ["updated_at", Mon, 16 Sep 2013 16:55:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 91]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 91]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 91], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 91]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 45], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:53 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:55:53 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/92/edit" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"92"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "92"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 92], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:55:55 UTC +00:00], ["pageable_id", 92], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:55:55 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 92]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 92]] Redditor::Image Load (0.5ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 92], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.4ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 92]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (51.1ms) Rendered admin/articles/edit.html.haml within layouts/application (83.5ms) Completed 200 OK in 156ms (Views: 102.4ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Started GET "/redditor/admin/pages/92/text_blocks/new?content_block%5Btemp_id%5D=1379350555727" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350555727"}, "page_id"=>"92"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "92"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 92]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 92], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (47.5ms) Completed 200 OK in 70ms (Views: 53.5ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:55:55 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:56:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:56:59 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/93/edit" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"93"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "93"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 93], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:01 UTC +00:00], ["pageable_id", 93], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:57:01 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 93]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 93]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 93], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 93]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.3ms) Rendered admin/articles/edit.html.haml within layouts/application (59.5ms) Completed 200 OK in 115ms (Views: 74.1ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Started GET "/redditor/admin/pages/93/text_blocks/new?content_block%5Btemp_id%5D=1379350621858" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350621858"}, "page_id"=>"93"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "93"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 93]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 93], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.1ms) Completed 200 OK in 74ms (Views: 57.0ms | ActiveRecord: 1.3ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:57:01 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:17 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:17 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/94/edit" for 127.0.0.1 at 2013-09-16 20:57:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"94"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "94"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 94], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:18 UTC +00:00], ["pageable_id", 94], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:57:18 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 94]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 94]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 94], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 94]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.6ms) Rendered admin/articles/edit.html.haml within layouts/application (57.5ms) Completed 200 OK in 104ms (Views: 71.5ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:57:18 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:57:18 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:57:18 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:57:18 +0400 Started GET "/redditor/admin/pages/94/text_blocks/new?content_block%5Btemp_id%5D=1379350639046" for 127.0.0.1 at 2013-09-16 20:57:19 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350639046"}, "page_id"=>"94"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "94"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 94]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 94], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.0ms) Completed 200 OK in 70ms (Views: 53.8ms | ActiveRecord: 0.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:57:19 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:22 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/95/edit" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"95"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "95"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 95], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:24 UTC +00:00], ["pageable_id", 95], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:57:24 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 95]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 95]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 95], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 95]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (29.8ms) Rendered admin/articles/edit.html.haml within layouts/application (56.8ms) Completed 200 OK in 105ms (Views: 72.4ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Started GET "/redditor/admin/pages/95/text_blocks/new?content_block%5Btemp_id%5D=1379350644872" for 127.0.0.1 at 2013-09-16 20:57:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350644872"}, "page_id"=>"95"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "95"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 95]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 95], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (14.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.6ms) Completed 200 OK in 73ms (Views: 57.7ms | ActiveRecord: 0.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:57:25 +0400  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 96], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 96 [["pageable_type", "Article"], ["pageable_id", 96], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 96]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 96]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 96], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 96]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 97], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 1"], ["imageable_id", 46], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 2"], ["imageable_id", 46], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 46], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 97 [["pageable_type", "Article"], ["pageable_id", 97], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 97]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 97]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 97], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 97]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 46], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["height", 480], ["page_id", 98], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 98 [["pageable_type", "Article"], ["pageable_id", 98], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 98]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 98]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 98], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 98]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 99], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 4"], ["imageable_id", 47], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 5"], ["imageable_id", 47], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 6"], ["imageable_id", 47], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 99], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["height", 480], ["page_id", 99], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 99 [["pageable_type", "Article"], ["pageable_id", 99], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 99]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 99]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 99], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 99]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 100], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 7"], ["imageable_id", 48], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 8"], ["imageable_id", 48], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 9"], ["imageable_id", 48], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 100], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["height", 480], ["page_id", 100], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 100 [["pageable_type", "Article"], ["pageable_id", 100], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 100]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 100]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 100], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 100]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 48], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (30.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (35.6ms) Rendered articles/show.html.haml (72.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 101], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 10"], ["imageable_id", 49], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 49], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 12"], ["imageable_id", 49], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 101], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["height", 480], ["page_id", 101], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 101 [["pageable_type", "Article"], ["pageable_id", 101], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 101]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 101]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 101], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 101]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 49], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["page_id", 102], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 13"], ["imageable_id", 50], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00], ["description", "image name 14"], ["imageable_id", 50], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00], ["description", "image name 15"], ["imageable_id", 50], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00], ["page_id", 102], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00], ["height", 480], ["page_id", 102], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 102 [["pageable_type", "Article"], ["pageable_id", 102], ["updated_at", Mon, 16 Sep 2013 16:57:26 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 102]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 102]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 102], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 102]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 50], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:46 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/103/edit" for 127.0.0.1 at 2013-09-16 20:57:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"103"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "103"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 103], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:48 UTC +00:00], ["pageable_id", 103], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:57:48 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 103]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 103]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 103], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 103]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.0ms) Rendered admin/articles/edit.html.haml within layouts/application (56.3ms) Completed 200 OK in 105ms (Views: 73.0ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:57:48 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:57:48 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:57:48 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:57:48 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["page_id", 104], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 104 [["pageable_type", "Article"], ["pageable_id", 104], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 104]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 104]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 104], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 104]]  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["height", 480], ["page_id", 105], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 105 [["pageable_type", "Article"], ["pageable_id", 105], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 105]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 105]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 105], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 105]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["page_id", 106], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 1"], ["imageable_id", 51], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 2"], ["imageable_id", 51], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 3"], ["imageable_id", 51], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 106 [["pageable_type", "Article"], ["pageable_id", 106], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 106]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 106]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 106], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 106]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 51], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["page_id", 107], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 4"], ["imageable_id", 52], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 5"], ["imageable_id", 52], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["description", "image name 6"], ["imageable_id", 52], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["page_id", 107], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["height", 480], ["page_id", 107], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 107 [["pageable_type", "Article"], ["pageable_id", 107], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 107]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 107]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 107], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 107]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00], ["page_id", 108], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 7"], ["imageable_id", 53], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 8"], ["imageable_id", 53], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 9"], ["imageable_id", 53], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["page_id", 108], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["height", 480], ["page_id", 108], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 108 [["pageable_type", "Article"], ["pageable_id", 108], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 108]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 108]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 108], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 108]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 53], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (34.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (39.8ms) Rendered articles/show.html.haml (47.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["page_id", 109], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 10"], ["imageable_id", 54], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 11"], ["imageable_id", 54], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 12"], ["imageable_id", 54], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["page_id", 109], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["height", 480], ["page_id", 109], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 109 [["pageable_type", "Article"], ["pageable_id", 109], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 109]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 109]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 109], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 109]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 54], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["page_id", 110], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 13"], ["imageable_id", 55], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 14"], ["imageable_id", 55], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["description", "image name 15"], ["imageable_id", 55], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["page_id", 110], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["height", 480], ["page_id", 110], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 110 [["pageable_type", "Article"], ["pageable_id", 110], ["updated_at", Mon, 16 Sep 2013 16:57:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 110]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 110]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 110], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 110]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 55], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (2.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["height", 480], ["page_id", 111], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 111 [["pageable_type", "Article"], ["pageable_id", 111], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 111]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 111]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 111], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 111]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["page_id", 112], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 112 [["pageable_type", "Article"], ["pageable_id", 112], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 112]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 112]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 112], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 112]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["page_id", 113], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 1"], ["imageable_id", 56], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 2"], ["imageable_id", 56], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 3"], ["imageable_id", 56], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 113 [["pageable_type", "Article"], ["pageable_id", 113], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 113]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 113]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 113], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 113]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 56], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["page_id", 114], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 4"], ["imageable_id", 57], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 5"], ["imageable_id", 57], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["description", "image name 6"], ["imageable_id", 57], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["page_id", 114], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["height", 480], ["page_id", 114], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 114 [["pageable_type", "Article"], ["pageable_id", 114], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 114]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 114]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 114], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 114]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/115/edit" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"115"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "115"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 115], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["pageable_id", 115], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 115]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 115]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 115], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 115]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.3ms) Rendered admin/articles/edit.html.haml within layouts/application (43.1ms) Completed 200 OK in 72ms (Views: 61.0ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Started GET "/redditor/admin/pages/115/text_blocks/new?content_block%5Btemp_id%5D=1379350683572" for 127.0.0.1 at 2013-09-16 20:58:03 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350683572"}, "page_id"=>"115"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "115"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 115]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 115], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.5ms) Completed 200 OK in 60ms (Views: 56.3ms | ActiveRecord: 1.2ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:58:03 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["page_id", 116], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["description", "image name 7"], ["imageable_id", 58], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["description", "image name 8"], ["imageable_id", 58], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["description", "image name 9"], ["imageable_id", 58], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["page_id", 116], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["height", 480], ["page_id", 116], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 116 [["pageable_type", "Article"], ["pageable_id", 116], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 116]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 116]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 116], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 116]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 58], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (28.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (34.2ms) Rendered articles/show.html.haml (39.7ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["page_id", 117], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00], ["description", "image name 10"], ["imageable_id", 59], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["description", "image name 11"], ["imageable_id", 59], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["description", "image name 12"], ["imageable_id", 59], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["page_id", 117], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["height", 480], ["page_id", 117], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]] SQL (0.1ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 117 [["pageable_type", "Article"], ["pageable_id", 117], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 117]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 117]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 117], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 117]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 59], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["page_id", 118], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["description", "image name 13"], ["imageable_id", 60], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["description", "image name 14"], ["imageable_id", 60], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["description", "image name 15"], ["imageable_id", 60], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["page_id", 118], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["height", 480], ["page_id", 118], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 118 [["pageable_type", "Article"], ["pageable_id", 118], ["updated_at", Mon, 16 Sep 2013 16:58:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 118]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 118]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 118], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 118]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 60], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:18 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:18 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/119/edit" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"119"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "119"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 119], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["pageable_id", 119], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 119]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 119]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 119], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 119]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.3ms) Rendered admin/articles/edit.html.haml within layouts/application (57.8ms) Completed 200 OK in 103ms (Views: 72.5ms | ActiveRecord: 4.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Started GET "/redditor/admin/pages/119/text_blocks/new?content_block%5Btemp_id%5D=1379350700443" for 127.0.0.1 at 2013-09-16 20:58:20 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350700443"}, "page_id"=>"119"}  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "119"]] SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["page_id", 120], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 119]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 119], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.2ms) Completed 200 OK in 116ms (Views: 94.8ms | ActiveRecord: 1.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 1"], ["imageable_id", 61], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 2"], ["imageable_id", 61], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 3"], ["imageable_id", 61], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["page_id", 120], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["height", 480], ["page_id", 120], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 120 [["pageable_type", "Article"], ["pageable_id", 120], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 120]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 120]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 120], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 120]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 61], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (35.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (40.8ms) Rendered articles/show.html.haml (47.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["page_id", 121], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 4"], ["imageable_id", 62], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 5"], ["imageable_id", 62], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["description", "image name 6"], ["imageable_id", 62], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["page_id", 121], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["height", 480], ["page_id", 121], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 121 [["pageable_type", "Article"], ["pageable_id", 121], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 121]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 121]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 121], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 121]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 62], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00], ["page_id", 122], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 7"], ["imageable_id", 63], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 8"], ["imageable_id", 63], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 9"], ["imageable_id", 63], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["page_id", 122], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["height", 480], ["page_id", 122], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 122 [["pageable_type", "Article"], ["pageable_id", 122], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 122]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 122]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 122], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 122]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 63], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["page_id", 123], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 123 [["pageable_type", "Article"], ["pageable_id", 123], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 123]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 123]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 123], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 123]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["page_id", 124], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 10"], ["imageable_id", 64], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 11"], ["imageable_id", 64], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 12"], ["imageable_id", 64], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["page_id", 124], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["height", 480], ["page_id", 124], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 124 [["pageable_type", "Article"], ["pageable_id", 124], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 124]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 124]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 124], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 124]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["page_id", 125], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 13"], ["imageable_id", 65], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 14"], ["imageable_id", 65], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["description", "image name 15"], ["imageable_id", 65], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 125 [["pageable_type", "Article"], ["pageable_id", 125], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 125]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 125]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 125], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 125]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 65], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["height", 480], ["page_id", 126], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 126 [["pageable_type", "Article"], ["pageable_id", 126], ["updated_at", Mon, 16 Sep 2013 16:58:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 126]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 126]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 126], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 126]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 127], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 1"], ["imageable_id", 66], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 2"], ["imageable_id", 66], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 3"], ["imageable_id", 66], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 127], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["height", 480], ["page_id", 127], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 127 [["pageable_type", "Article"], ["pageable_id", 127], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 127]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 127]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 127], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 127]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 66], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (29.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (50.1ms) Rendered articles/show.html.haml (57.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 128], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 4"], ["imageable_id", 67], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 5"], ["imageable_id", 67], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 6"], ["imageable_id", 67], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 128], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["height", 480], ["page_id", 128], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 128 [["pageable_type", "Article"], ["pageable_id", 128], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 128]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 128]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 128], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 128]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 67], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 129], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 7"], ["imageable_id", 68], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 8"], ["imageable_id", 68], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["description", "image name 9"], ["imageable_id", 68], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["page_id", 129], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["height", 480], ["page_id", 129], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 129 [["pageable_type", "Article"], ["pageable_id", 129], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 129]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 129]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 129], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 129]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 68], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (2.9ms) Rendered collection (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:48 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/130/edit" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"130"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "130"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 130], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:50 UTC +00:00], ["pageable_id", 130], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:58:50 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 130]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 130]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 130], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 130]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.1ms) Completed 200 OK in 57ms (Views: 46.1ms | ActiveRecord: 5.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Started GET "/redditor/admin/pages/130/text_blocks/new?content_block%5Btemp_id%5D=1379350730937" for 127.0.0.1 at 2013-09-16 20:58:50 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350730937"}, "page_id"=>"130"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "130"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 130]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 130], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.3ms) Completed 200 OK in 57ms (Views: 52.8ms | ActiveRecord: 1.1ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:58:51 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["page_id", 131], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 10"], ["imageable_id", 69], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 11"], ["imageable_id", 69], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 12"], ["imageable_id", 69], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["page_id", 131], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["height", 480], ["page_id", 131], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 131 [["pageable_type", "Article"], ["pageable_id", 131], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 131]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 131]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 131], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 131]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["page_id", 132], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 13"], ["imageable_id", 70], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 14"], ["imageable_id", 70], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["description", "image name 15"], ["imageable_id", 70], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 132 [["pageable_type", "Article"], ["pageable_id", 132], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 132]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 132]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 132], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 132]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 70], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["page_id", 133], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 133 [["pageable_type", "Article"], ["pageable_id", 133], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 133]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 133]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 133], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 133]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["height", 480], ["page_id", 134], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 134 [["pageable_type", "Article"], ["pageable_id", 134], ["updated_at", Mon, 16 Sep 2013 16:58:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 134]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 134]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 134], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 134]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:11 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:11 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/135/edit" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"135"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "135"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 135], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["pageable_id", 135], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 135]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 135]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 135], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 135]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.1ms) Rendered admin/articles/edit.html.haml within layouts/application (56.1ms) Completed 200 OK in 102ms (Views: 69.8ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Started GET "/redditor/admin/pages/135/text_blocks/new?content_block%5Btemp_id%5D=1379350753649" for 127.0.0.1 at 2013-09-16 20:59:13 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350753649"}, "page_id"=>"135"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "135"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 135]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 135], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (47.5ms) Completed 200 OK in 70ms (Views: 52.4ms | ActiveRecord: 1.6ms) Started GET "/images/admin/add_txt_big.png" for 127.0.0.1 at 2013-09-16 20:59:13 +0400  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["page_id", 136], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 136 [["pageable_type", "Article"], ["pageable_id", 136], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 136]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 136]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 136], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 136]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["page_id", 137], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["description", "image name 1"], ["imageable_id", 71], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00], ["description", "image name 2"], ["imageable_id", 71], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 3"], ["imageable_id", 71], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 137 [["pageable_type", "Article"], ["pageable_id", 137], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 137]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 137]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 137], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 137]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 71], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["height", 480], ["page_id", 138], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 138 [["pageable_type", "Article"], ["pageable_id", 138], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 138]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 138]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 138], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 138]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 139], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 72], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 72], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 6"], ["imageable_id", 72], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 139], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["height", 480], ["page_id", 139], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 139 [["pageable_type", "Article"], ["pageable_id", 139], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 139]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 139]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 139], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 139]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 140], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 73], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 73], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 9"], ["imageable_id", 73], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 140], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["height", 480], ["page_id", 140], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 140 [["pageable_type", "Article"], ["pageable_id", 140], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 140]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 140]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 140], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 140]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 73], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (30.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (35.2ms) Rendered articles/show.html.haml (41.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 141], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 10"], ["imageable_id", 74], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 11"], ["imageable_id", 74], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 12"], ["imageable_id", 74], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 141], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["height", 480], ["page_id", 141], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 141 [["pageable_type", "Article"], ["pageable_id", 141], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 141]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 141]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 141], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 141]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 74], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 142], ["position", 1], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 13"], ["imageable_id", 75], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (1.1ms) commit transaction  (1.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 14"], ["imageable_id", 75], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["description", "image name 15"], ["imageable_id", 75], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["page_id", 142], ["position", 2], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["height", 480], ["page_id", 142], ["position", 3], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 142 [["pageable_type", "Article"], ["pageable_id", 142], ["updated_at", Mon, 16 Sep 2013 16:59:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 142]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 142]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 142], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 142]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 75], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:18 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:18 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/143/edit" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"143"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "143"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 143], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:20 UTC +00:00], ["pageable_id", 143], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:01:20 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 143]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 143]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 143], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 143]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.5ms) Rendered admin/articles/edit.html.haml within layouts/application (55.1ms) Completed 200 OK in 100ms (Views: 68.6ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Started GET "/redditor/admin/pages/143/text_blocks/new?content_block%5Btemp_id%5D=1379350880854" for 127.0.0.1 at 2013-09-16 21:01:20 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350880854"}, "page_id"=>"143"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "143"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 143]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 143], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.9ms) Completed 200 OK in 78ms (Views: 56.9ms | ActiveRecord: 1.7ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:01:20 +0400  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 144], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 144 [["pageable_type", "Article"], ["pageable_id", 144], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 144]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 144]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 144], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 144]]  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 145], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 1"], ["imageable_id", 76], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 2"], ["imageable_id", 76], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 76], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 145 [["pageable_type", "Article"], ["pageable_id", 145], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 145]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 145]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 145], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 145]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 76], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["height", 480], ["page_id", 146], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 146 [["pageable_type", "Article"], ["pageable_id", 146], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 146]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 146]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 146], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 146]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 147], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 4"], ["imageable_id", 77], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 5"], ["imageable_id", 77], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 6"], ["imageable_id", 77], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 147], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["height", 480], ["page_id", 147], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 147 [["pageable_type", "Article"], ["pageable_id", 147], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 147]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 147]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 147], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 147]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 148], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 7"], ["imageable_id", 78], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 8"], ["imageable_id", 78], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 9"], ["imageable_id", 78], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 148], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["height", 480], ["page_id", 148], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 148 [["pageable_type", "Article"], ["pageable_id", 148], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 148]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 148]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 148], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 148]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 78], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (31.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.5ms) Rendered articles/show.html.haml (43.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 149], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 10"], ["imageable_id", 79], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 11"], ["imageable_id", 79], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 12"], ["imageable_id", 79], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 149], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["height", 480], ["page_id", 149], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 149 [["pageable_type", "Article"], ["pageable_id", 149], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 149]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 149]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 149], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 149]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 79], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 150], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 13"], ["imageable_id", 80], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 14"], ["imageable_id", 80], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["description", "image name 15"], ["imageable_id", 80], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["page_id", 150], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["height", 480], ["page_id", 150], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 150 [["pageable_type", "Article"], ["pageable_id", 150], ["updated_at", Mon, 16 Sep 2013 17:01:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 150]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 150]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 150], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 150]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 80], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:46 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["height", 480], ["page_id", 151], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 151 [["pageable_type", "Article"], ["pageable_id", 151], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 151]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 151]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 151], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 151]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["page_id", 152], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 152 [["pageable_type", "Article"], ["pageable_id", 152], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 152]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 152]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 152], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 152]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["page_id", 153], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 1"], ["imageable_id", 81], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 2"], ["imageable_id", 81], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 3"], ["imageable_id", 81], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 153 [["pageable_type", "Article"], ["pageable_id", 153], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 153]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 153]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 153], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 153]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 81], ["imageable_type", "Redditor::SliderBlock"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["page_id", 154], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 4"], ["imageable_id", 82], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 5"], ["imageable_id", 82], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["description", "image name 6"], ["imageable_id", 82], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["page_id", 154], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["height", 480], ["page_id", 154], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 154 [["pageable_type", "Article"], ["pageable_id", 154], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 154]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 154]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 154], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 154]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:47 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/155/edit" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"155"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "155"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 155], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["pageable_id", 155], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 155]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 155]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 155], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 155]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.1ms) Rendered admin/articles/edit.html.haml within layouts/application (38.6ms) Completed 200 OK in 66ms (Views: 54.5ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Started GET "/redditor/admin/pages/155/text_blocks/new?content_block%5Btemp_id%5D=1379350909369" for 127.0.0.1 at 2013-09-16 21:01:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350909369"}, "page_id"=>"155"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "155"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 155]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 155], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (53.5ms) Completed 200 OK in 64ms (Views: 59.4ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:01:49 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["page_id", 156], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 7"], ["imageable_id", 83], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 8"], ["imageable_id", 83], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 9"], ["imageable_id", 83], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["page_id", 156], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["height", 480], ["page_id", 156], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 156 [["pageable_type", "Article"], ["pageable_id", 156], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 156]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 156]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 156], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 156]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 83], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (31.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.3ms) Rendered articles/show.html.haml (43.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["page_id", 157], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 10"], ["imageable_id", 84], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 11"], ["imageable_id", 84], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 12"], ["imageable_id", 84], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["page_id", 157], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["height", 480], ["page_id", 157], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 157 [["pageable_type", "Article"], ["pageable_id", 157], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 157]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 157]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 157], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 157]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 84], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["page_id", 158], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 13"], ["imageable_id", 85], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00], ["description", "image name 14"], ["imageable_id", 85], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00], ["description", "image name 15"], ["imageable_id", 85], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00], ["page_id", 158], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00], ["height", 480], ["page_id", 158], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 158 [["pageable_type", "Article"], ["pageable_id", 158], ["updated_at", Mon, 16 Sep 2013 17:01:50 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 158]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 158]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 158], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 158]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 85], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:00 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/159/edit" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"159"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "159"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 159], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00], ["pageable_id", 159], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 159]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 159]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 159], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 159]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.3ms) Rendered admin/articles/edit.html.haml within layouts/application (60.4ms) Completed 200 OK in 115ms (Views: 74.1ms | ActiveRecord: 6.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Started GET "/redditor/admin/pages/159/text_blocks/new?content_block%5Btemp_id%5D=1379350922649" for 127.0.0.1 at 2013-09-16 21:02:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350922649"}, "page_id"=>"159"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "159"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 159]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 159], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.3ms) Completed 200 OK in 74ms (Views: 57.2ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:02:02 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00], ["page_id", 160], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00], ["description", "image name 1"], ["imageable_id", 86], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00], ["description", "image name 2"], ["imageable_id", 86], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 3"], ["imageable_id", 86], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 160], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["height", 480], ["page_id", 160], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 160 [["pageable_type", "Article"], ["pageable_id", 160], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 160]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 160]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 160], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 160]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 86], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (33.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (39.0ms) Rendered articles/show.html.haml (45.5ms)  (0.4ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 161], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 4"], ["imageable_id", 87], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 5"], ["imageable_id", 87], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 6"], ["imageable_id", 87], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 161], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["height", 480], ["page_id", 161], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 161 [["pageable_type", "Article"], ["pageable_id", 161], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 161]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 161]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 161], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 161]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 87], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 162], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 7"], ["imageable_id", 88], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 8"], ["imageable_id", 88], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 9"], ["imageable_id", 88], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 162], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["height", 480], ["page_id", 162], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 162 [["pageable_type", "Article"], ["pageable_id", 162], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 162]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 162]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 162], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 162]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 88], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 163], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 163 [["pageable_type", "Article"], ["pageable_id", 163], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 163]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 163]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 163], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 163]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 164], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 10"], ["imageable_id", 89], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 11"], ["imageable_id", 89], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 12"], ["imageable_id", 89], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 164], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["height", 480], ["page_id", 164], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 164 [["pageable_type", "Article"], ["pageable_id", 164], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 164]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 164]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 164], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 164]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["page_id", 165], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 13"], ["imageable_id", 90], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 14"], ["imageable_id", 90], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["description", "image name 15"], ["imageable_id", 90], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 165 [["pageable_type", "Article"], ["pageable_id", 165], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 165]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 165]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 165], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 165]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 90], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["height", 480], ["page_id", 166], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 166 [["pageable_type", "Article"], ["pageable_id", 166], ["updated_at", Mon, 16 Sep 2013 17:02:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 166]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 166]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 166], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 166]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["height", 480], ["page_id", 167], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 167 [["pageable_type", "Article"], ["pageable_id", 167], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 167]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 167]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 167], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 167]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["page_id", 168], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 168 [["pageable_type", "Article"], ["pageable_id", 168], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 168]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 168]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 168], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 168]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["page_id", 169], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 1"], ["imageable_id", 91], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 2"], ["imageable_id", 91], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 3"], ["imageable_id", 91], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 169 [["pageable_type", "Article"], ["pageable_id", 169], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 169]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 169]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 169], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 169]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 91], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["page_id", 170], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 4"], ["imageable_id", 92], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 5"], ["imageable_id", 92], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["description", "image name 6"], ["imageable_id", 92], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["page_id", 170], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["height", 480], ["page_id", 170], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 170 [["pageable_type", "Article"], ["pageable_id", 170], ["updated_at", Mon, 16 Sep 2013 17:02:13 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 170]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 170]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 170], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 170]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:14 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/171/edit" for 127.0.0.1 at 2013-09-16 21:02:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"171"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "171"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 171], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00], ["pageable_id", 171], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 171]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 171]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 171], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 171]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.7ms) Rendered admin/articles/edit.html.haml within layouts/application (41.1ms) Completed 200 OK in 67ms (Views: 55.4ms | ActiveRecord: 5.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:02:15 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:02:15 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:02:15 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:02:15 +0400  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00], ["page_id", 172], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 7"], ["imageable_id", 93], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 8"], ["imageable_id", 93], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 9"], ["imageable_id", 93], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["page_id", 172], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["height", 480], ["page_id", 172], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 172 [["pageable_type", "Article"], ["pageable_id", 172], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 172]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 172]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 172], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 172]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 93], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (31.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.1ms) Rendered articles/show.html.haml (44.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["page_id", 173], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 10"], ["imageable_id", 94], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 11"], ["imageable_id", 94], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 12"], ["imageable_id", 94], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["page_id", 173], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["height", 480], ["page_id", 173], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 173 [["pageable_type", "Article"], ["pageable_id", 173], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 173]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 173]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 173], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 173]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 94], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["page_id", 174], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 13"], ["imageable_id", 95], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 14"], ["imageable_id", 95], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["description", "image name 15"], ["imageable_id", 95], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["page_id", 174], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["height", 480], ["page_id", 174], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 174 [["pageable_type", "Article"], ["pageable_id", 174], ["updated_at", Mon, 16 Sep 2013 17:02:16 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 174]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 174]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 174], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 174]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 95], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.7ms) Rendered collection (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["page_id", 175], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 1"], ["imageable_id", 96], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 2"], ["imageable_id", 96], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 3"], ["imageable_id", 96], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["page_id", 175], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["height", 480], ["page_id", 175], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 175 [["pageable_type", "Article"], ["pageable_id", 175], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 175]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 175]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 175], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 175]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 96], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (30.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (52.2ms) Rendered articles/show.html.haml (60.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["page_id", 176], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 4"], ["imageable_id", 97], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 5"], ["imageable_id", 97], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["description", "image name 6"], ["imageable_id", 97], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["page_id", 176], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["height", 480], ["page_id", 176], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 176 [["pageable_type", "Article"], ["pageable_id", 176], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 176]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 176]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 176], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 176]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 97], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00], ["page_id", 177], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 7"], ["imageable_id", 98], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 8"], ["imageable_id", 98], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 9"], ["imageable_id", 98], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["page_id", 177], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["height", 480], ["page_id", 177], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 177 [["pageable_type", "Article"], ["pageable_id", 177], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 177]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 177]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 177], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 177]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 98], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["page_id", 178], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 10"], ["imageable_id", 99], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 11"], ["imageable_id", 99], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 12"], ["imageable_id", 99], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["page_id", 178], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["height", 480], ["page_id", 178], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 178 [["pageable_type", "Article"], ["pageable_id", 178], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 178]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 178]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 178], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 178]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["height", 480], ["page_id", 179], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 179 [["pageable_type", "Article"], ["pageable_id", 179], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 179]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 179]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 179], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 179]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["page_id", 180], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 13"], ["imageable_id", 100], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 14"], ["imageable_id", 100], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["description", "image name 15"], ["imageable_id", 100], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 180 [["pageable_type", "Article"], ["pageable_id", 180], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 180]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 180]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 180], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 180]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 100], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["page_id", 181], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 181 [["pageable_type", "Article"], ["pageable_id", 181], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 181]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 181]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 181], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 181]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:02:33 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/182/edit" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"182"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "182"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 182], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:02:35 UTC +00:00], ["pageable_id", 182], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:02:35 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 182]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 182]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 182], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 182]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.0ms) Completed 200 OK in 58ms (Views: 46.2ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Started GET "/redditor/admin/pages/182/text_blocks/new?content_block%5Btemp_id%5D=1379350955448" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379350955448"}, "page_id"=>"182"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "182"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 182]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 182], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.4ms) Completed 200 OK in 61ms (Views: 57.0ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:02:35 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["height", 480], ["page_id", 183], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 183 [["pageable_type", "Article"], ["pageable_id", 183], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 183]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 183]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 183], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 183]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["page_id", 184], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 1"], ["imageable_id", 101], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 2"], ["imageable_id", 101], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 101], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 184 [["pageable_type", "Article"], ["pageable_id", 184], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 184]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 184]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 184], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 184]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 101], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["page_id", 185], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 185 [["pageable_type", "Article"], ["pageable_id", 185], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 185]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 185]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 185], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 185]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["page_id", 186], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 4"], ["imageable_id", 102], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 5"], ["imageable_id", 102], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["description", "image name 6"], ["imageable_id", 102], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["page_id", 186], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["height", 480], ["page_id", 186], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 186 [["pageable_type", "Article"], ["pageable_id", 186], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 186]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 186]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 186], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 186]] Article Load (0.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:21 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/187/edit" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"187"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "187"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 187], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["pageable_id", 187], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 187]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 187]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 187], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 187]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.3ms) Rendered admin/articles/edit.html.haml within layouts/application (41.0ms) Completed 200 OK in 68ms (Views: 56.0ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Started GET "/redditor/admin/pages/187/text_blocks/new?content_block%5Btemp_id%5D=1379351003710" for 127.0.0.1 at 2013-09-16 21:03:23 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351003710"}, "page_id"=>"187"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "187"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 187]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 187], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.6ms) Completed 200 OK in 60ms (Views: 55.9ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:03:23 +0400  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["page_id", 188], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["description", "image name 7"], ["imageable_id", 103], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["description", "image name 8"], ["imageable_id", 103], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["description", "image name 9"], ["imageable_id", 103], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["page_id", 188], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["height", 480], ["page_id", 188], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 188 [["pageable_type", "Article"], ["pageable_id", 188], ["updated_at", Mon, 16 Sep 2013 17:03:23 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 188]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 188]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 188], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 188]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 103], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (33.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.6ms) Rendered articles/show.html.haml (45.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["page_id", 189], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 10"], ["imageable_id", 104], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 11"], ["imageable_id", 104], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 12"], ["imageable_id", 104], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["page_id", 189], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["height", 480], ["page_id", 189], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 189 [["pageable_type", "Article"], ["pageable_id", 189], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 189]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 189]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 189], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 189]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 104], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["page_id", 190], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 13"], ["imageable_id", 105], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 14"], ["imageable_id", 105], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["description", "image name 15"], ["imageable_id", 105], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["page_id", 190], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["height", 480], ["page_id", 190], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 190 [["pageable_type", "Article"], ["pageable_id", 190], ["updated_at", Mon, 16 Sep 2013 17:03:24 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 190]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 190]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 190], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 190]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 105], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (12.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:28 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/191/edit" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"191"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "191"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 191], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["pageable_id", 191], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 191]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 191]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 191], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 191]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.0ms) Rendered admin/articles/edit.html.haml within layouts/application (57.6ms) Completed 200 OK in 105ms (Views: 71.8ms | ActiveRecord: 5.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Started GET "/redditor/admin/pages/191/text_blocks/new?content_block%5Btemp_id%5D=1379351010344" for 127.0.0.1 at 2013-09-16 21:03:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351010344"}, "page_id"=>"191"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "191"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 191]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 191], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.3ms) Completed 200 OK in 72ms (Views: 57.2ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:03:30 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["page_id", 192], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 192 [["pageable_type", "Article"], ["pageable_id", 192], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 192]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 192]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 192], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 192]]  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["height", 480], ["page_id", 193], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 193 [["pageable_type", "Article"], ["pageable_id", 193], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 193]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 193]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 193], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 193]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["page_id", 194], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 1"], ["imageable_id", 106], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 2"], ["imageable_id", 106], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 3"], ["imageable_id", 106], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 194 [["pageable_type", "Article"], ["pageable_id", 194], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 194]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 194]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 194], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 194]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 106], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["page_id", 195], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 4"], ["imageable_id", 107], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 5"], ["imageable_id", 107], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 6"], ["imageable_id", 107], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["page_id", 195], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["height", 480], ["page_id", 195], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 195 [["pageable_type", "Article"], ["pageable_id", 195], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 195]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 195]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 195], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 195]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["page_id", 196], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 108], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 8"], ["imageable_id", 108], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 9"], ["imageable_id", 108], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["page_id", 196], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["height", 480], ["page_id", 196], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 196 [["pageable_type", "Article"], ["pageable_id", 196], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 196]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 196]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 196], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 196]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 108], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (32.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.0ms) Rendered articles/show.html.haml (43.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["page_id", 197], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 10"], ["imageable_id", 109], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 11"], ["imageable_id", 109], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 12"], ["imageable_id", 109], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["page_id", 197], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["height", 480], ["page_id", 197], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 197 [["pageable_type", "Article"], ["pageable_id", 197], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 197]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 197]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 197], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 197]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 109], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["page_id", 198], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 13"], ["imageable_id", 110], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 110], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 110], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["page_id", 198], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["height", 480], ["page_id", 198], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 198 [["pageable_type", "Article"], ["pageable_id", 198], ["updated_at", Mon, 16 Sep 2013 17:03:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 198]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 198]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 198], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 198]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 110], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:38 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:38 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/199/edit" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"199"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "199"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 199], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["pageable_id", 199], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (3.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 199]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 199]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 199], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 199]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.1ms) Rendered admin/articles/edit.html.haml within layouts/application (57.4ms) Completed 200 OK in 105ms (Views: 70.7ms | ActiveRecord: 6.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Started GET "/redditor/admin/pages/199/text_blocks/new?content_block%5Btemp_id%5D=1379351020711" for 127.0.0.1 at 2013-09-16 21:03:40 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351020711"}, "page_id"=>"199"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "199"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 199]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 199], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.4ms) Completed 200 OK in 73ms (Views: 56.1ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:03:40 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["page_id", 200], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 200 [["pageable_type", "Article"], ["pageable_id", 200], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 200]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 200]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 200], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 200]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["height", 480], ["page_id", 201], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 201 [["pageable_type", "Article"], ["pageable_id", 201], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 201]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 201]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 201], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 201]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00], ["page_id", 202], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 1"], ["imageable_id", 111], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 2"], ["imageable_id", 111], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 3"], ["imageable_id", 111], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 202], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["height", 480], ["page_id", 202], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 202 [["pageable_type", "Article"], ["pageable_id", 202], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 202]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 202]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 202], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 202]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 203], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 4"], ["imageable_id", 112], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 5"], ["imageable_id", 112], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 6"], ["imageable_id", 112], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 203 [["pageable_type", "Article"], ["pageable_id", 203], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 203]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 203]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 203], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 203]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 112], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 204], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 7"], ["imageable_id", 113], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 8"], ["imageable_id", 113], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 9"], ["imageable_id", 113], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 204], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["height", 480], ["page_id", 204], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 204 [["pageable_type", "Article"], ["pageable_id", 204], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 204]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 204]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 204], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 204]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 113], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (30.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (35.2ms) Rendered articles/show.html.haml (41.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 205], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 10"], ["imageable_id", 114], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 11"], ["imageable_id", 114], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 12"], ["imageable_id", 114], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 205], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["height", 480], ["page_id", 205], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 205 [["pageable_type", "Article"], ["pageable_id", 205], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 205]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 205]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 205], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 205]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 114], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 206], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 13"], ["imageable_id", 115], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 14"], ["imageable_id", 115], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["description", "image name 15"], ["imageable_id", 115], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["page_id", 206], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["height", 480], ["page_id", 206], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 206 [["pageable_type", "Article"], ["pageable_id", 206], ["updated_at", Mon, 16 Sep 2013 17:03:41 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 206]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 206]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 206], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 206]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 115], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:01 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/207/edit" for 127.0.0.1 at 2013-09-16 21:04:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"207"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "207"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 207], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["pageable_id", 207], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 207]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 207]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 207], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 207]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.8ms) Rendered admin/articles/edit.html.haml within layouts/application (64.7ms) Completed 200 OK in 115ms (Views: 79.9ms | ActiveRecord: 6.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:04:03 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:04:03 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:04:03 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:04:03 +0400  (0.6ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (2.2ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["page_id", 208], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (2.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["description", "image name 1"], ["imageable_id", 116], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["description", "image name 2"], ["imageable_id", 116], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["description", "image name 3"], ["imageable_id", 116], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["page_id", 208], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["height", 480], ["page_id", 208], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 208 [["pageable_type", "Article"], ["pageable_id", 208], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 208]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 208]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 208], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 208]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 116], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (35.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.2ms) Rendered articles/show.html.haml (48.1ms)  (0.4ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["page_id", 209], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00], ["description", "image name 4"], ["imageable_id", 117], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 117], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 117], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 209], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["height", 480], ["page_id", 209], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 209 [["pageable_type", "Article"], ["pageable_id", 209], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 209]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 209]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 209], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 209]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 117], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 210], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 7"], ["imageable_id", 118], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 8"], ["imageable_id", 118], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 9"], ["imageable_id", 118], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 210], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["height", 480], ["page_id", 210], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 210 [["pageable_type", "Article"], ["pageable_id", 210], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 210]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 210]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 210], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 210]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 118], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 211], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 10"], ["imageable_id", 119], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 11"], ["imageable_id", 119], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 12"], ["imageable_id", 119], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 211 [["pageable_type", "Article"], ["pageable_id", 211], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 211]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 211]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 211], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 211]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 119], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 212], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 212 [["pageable_type", "Article"], ["pageable_id", 212], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 212]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 212]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 212], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 212]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 213], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 13"], ["imageable_id", 120], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 14"], ["imageable_id", 120], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["description", "image name 15"], ["imageable_id", 120], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["page_id", 213], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["height", 480], ["page_id", 213], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 213 [["pageable_type", "Article"], ["pageable_id", 213], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 213]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 213]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 213], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 213]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["height", 480], ["page_id", 214], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 214 [["pageable_type", "Article"], ["pageable_id", 214], ["updated_at", Mon, 16 Sep 2013 17:04:04 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 214]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 214]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 214], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 214]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00], ["height", 480], ["page_id", 215], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 215 [["pageable_type", "Article"], ["pageable_id", 215], ["updated_at", Mon, 16 Sep 2013 17:05:11 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 215]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 215]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 215], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 215]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["page_id", 216], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 1"], ["imageable_id", 121], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 2"], ["imageable_id", 121], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 3"], ["imageable_id", 121], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 216 [["pageable_type", "Article"], ["pageable_id", 216], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 216]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 216]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 216], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 216]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 121], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["page_id", 217], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 217 [["pageable_type", "Article"], ["pageable_id", 217], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 217]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 217]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 217], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 217]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["page_id", 218], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 4"], ["imageable_id", 122], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 5"], ["imageable_id", 122], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["description", "image name 6"], ["imageable_id", 122], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["page_id", 218], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["height", 480], ["page_id", 218], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 218 [["pageable_type", "Article"], ["pageable_id", 218], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 218]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 218]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 218], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 218]] Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:12 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/219/edit" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"219"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "219"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 219], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["pageable_id", 219], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 219]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 219]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 219], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 219]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.1ms) Rendered admin/articles/edit.html.haml within layouts/application (37.8ms) Completed 200 OK in 64ms (Views: 52.2ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Started GET "/redditor/admin/pages/219/text_blocks/new?content_block%5Btemp_id%5D=1379351114435" for 127.0.0.1 at 2013-09-16 21:05:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351114435"}, "page_id"=>"219"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "219"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 219]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 219], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.6ms) Completed 200 OK in 61ms (Views: 57.4ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:05:14 +0400  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["page_id", 220], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 123], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 123], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 9"], ["imageable_id", 123], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["page_id", 220], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["height", 480], ["page_id", 220], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 220 [["pageable_type", "Article"], ["pageable_id", 220], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 220]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 220]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 220], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 220]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 123], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (30.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.5ms) Rendered articles/show.html.haml (43.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["page_id", 221], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 10"], ["imageable_id", 124], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 11"], ["imageable_id", 124], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 12"], ["imageable_id", 124], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["page_id", 221], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["height", 480], ["page_id", 221], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 221 [["pageable_type", "Article"], ["pageable_id", 221], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 221]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 221]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 221], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 221]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 124], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["page_id", 222], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00], ["description", "image name 13"], ["imageable_id", 125], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["description", "image name 14"], ["imageable_id", 125], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["description", "image name 15"], ["imageable_id", 125], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["page_id", 222], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["height", 480], ["page_id", 222], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 222 [["pageable_type", "Article"], ["pageable_id", 222], ["updated_at", Mon, 16 Sep 2013 17:05:15 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 222]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 222]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 222], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 222]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 125], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.0ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["page_id", 223], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["description", "image name 1"], ["imageable_id", 126], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["description", "image name 2"], ["imageable_id", 126], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["description", "image name 3"], ["imageable_id", 126], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00], ["page_id", 223], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["height", 480], ["page_id", 223], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 223 [["pageable_type", "Article"], ["pageable_id", 223], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 223]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 223]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 223], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 223]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 126], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (33.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (55.2ms) Rendered articles/show.html.haml (65.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 224], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 4"], ["imageable_id", 127], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 5"], ["imageable_id", 127], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 6"], ["imageable_id", 127], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 224], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["height", 480], ["page_id", 224], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 224 [["pageable_type", "Article"], ["pageable_id", 224], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 224]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 224]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 224], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 224]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 127], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 225], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 7"], ["imageable_id", 128], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 8"], ["imageable_id", 128], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 9"], ["imageable_id", 128], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 225], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["height", 480], ["page_id", 225], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 225 [["pageable_type", "Article"], ["pageable_id", 225], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 225]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 225]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 225], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 225]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 128], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 226], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 10"], ["imageable_id", 129], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 11"], ["imageable_id", 129], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 12"], ["imageable_id", 129], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 226], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["height", 480], ["page_id", 226], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 226 [["pageable_type", "Article"], ["pageable_id", 226], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 226]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 226]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 226], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 226]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["height", 480], ["page_id", 227], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 227 [["pageable_type", "Article"], ["pageable_id", 227], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 227]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 227]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 227], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 227]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 228], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 130], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 14"], ["imageable_id", 130], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["description", "image name 15"], ["imageable_id", 130], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 228 [["pageable_type", "Article"], ["pageable_id", 228], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 228]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 228]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 228], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 228]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 130], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["page_id", 229], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 229 [["pageable_type", "Article"], ["pageable_id", 229], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 229]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 229]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 229], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 229]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:22 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/230/edit" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"230"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "230"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 230], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:24 UTC +00:00], ["pageable_id", 230], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:06:24 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 230]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 230]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 230], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 230]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.0ms) Completed 200 OK in 58ms (Views: 46.6ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Started GET "/redditor/admin/pages/230/text_blocks/new?content_block%5Btemp_id%5D=1379351184713" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351184713"}, "page_id"=>"230"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "230"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 230]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 230], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.5ms) Completed 200 OK in 60ms (Views: 55.5ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:06:24 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["page_id", 231], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["description", "image name 1"], ["imageable_id", 131], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["description", "image name 2"], ["imageable_id", 131], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["description", "image name 3"], ["imageable_id", 131], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00], ["page_id", 231], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["height", 480], ["page_id", 231], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 231 [["pageable_type", "Article"], ["pageable_id", 231], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 231]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 231]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 231], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 231]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 131], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (32.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.3ms) Rendered articles/show.html.haml (63.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 232], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 132], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 132], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 132], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 232], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["height", 480], ["page_id", 232], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 232 [["pageable_type", "Article"], ["pageable_id", 232], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 232]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 232]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 232], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 232]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 132], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 233], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 7"], ["imageable_id", 133], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 8"], ["imageable_id", 133], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 9"], ["imageable_id", 133], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 233], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["height", 480], ["page_id", 233], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 233 [["pageable_type", "Article"], ["pageable_id", 233], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 233]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 233]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 233], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 233]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 133], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 234], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 10"], ["imageable_id", 134], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 11"], ["imageable_id", 134], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 12"], ["imageable_id", 134], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 234], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["height", 480], ["page_id", 234], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 234 [["pageable_type", "Article"], ["pageable_id", 234], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 234]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 234]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 234], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 234]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["height", 480], ["page_id", 235], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 235 [["pageable_type", "Article"], ["pageable_id", 235], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 235]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 235]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 235], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 235]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 236], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 236 [["pageable_type", "Article"], ["pageable_id", 236], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 236]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 236]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 236], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 236]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["page_id", 237], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 13"], ["imageable_id", 135], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 14"], ["imageable_id", 135], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["description", "image name 15"], ["imageable_id", 135], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 237 [["pageable_type", "Article"], ["pageable_id", 237], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 237]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 237]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 237], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 237]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 135], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:44 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/238/edit" for 127.0.0.1 at 2013-09-16 21:06:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"238"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "238"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 238], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:46 UTC +00:00], ["pageable_id", 238], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:06:46 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 238]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 238]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 238], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 238]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.3ms) Completed 200 OK in 60ms (Views: 48.3ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:06:46 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:06:46 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:06:46 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:06:46 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00], ["height", 480], ["page_id", 239], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 239 [["pageable_type", "Article"], ["pageable_id", 239], ["updated_at", Mon, 16 Sep 2013 17:06:58 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 239]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 239]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 239], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 239]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["page_id", 240], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 1"], ["imageable_id", 136], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 2"], ["imageable_id", 136], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 3"], ["imageable_id", 136], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 240 [["pageable_type", "Article"], ["pageable_id", 240], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 240]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 240]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 240], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 240]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 136], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["page_id", 241], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 241 [["pageable_type", "Article"], ["pageable_id", 241], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 241]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 241]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 241], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 241]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["page_id", 242], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 4"], ["imageable_id", 137], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 5"], ["imageable_id", 137], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["description", "image name 6"], ["imageable_id", 137], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["page_id", 242], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["height", 480], ["page_id", 242], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 242 [["pageable_type", "Article"], ["pageable_id", 242], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 242]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 242]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 242], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 242]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:06:59 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/243/edit" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"243"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "243"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 243], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["pageable_id", 243], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 243]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 243]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 243], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 243]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.0ms) Rendered admin/articles/edit.html.haml within layouts/application (37.2ms) Completed 200 OK in 62ms (Views: 51.6ms | ActiveRecord: 4.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Started GET "/redditor/admin/pages/243/text_blocks/new?content_block%5Btemp_id%5D=1379351221350" for 127.0.0.1 at 2013-09-16 21:07:01 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351221350"}, "page_id"=>"243"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "243"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 243]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 243], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.2ms) Completed 200 OK in 61ms (Views: 56.2ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:07:01 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 244], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 7"], ["imageable_id", 138], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 8"], ["imageable_id", 138], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 9"], ["imageable_id", 138], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 244], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["height", 480], ["page_id", 244], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 244 [["pageable_type", "Article"], ["pageable_id", 244], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 244]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 244]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 244], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 244]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 138], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (30.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.5ms) Rendered articles/show.html.haml (43.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 245], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 10"], ["imageable_id", 139], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 11"], ["imageable_id", 139], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 12"], ["imageable_id", 139], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 245], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["height", 480], ["page_id", 245], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 245 [["pageable_type", "Article"], ["pageable_id", 245], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 245]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 245]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 245], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 245]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 139], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 246], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 13"], ["imageable_id", 140], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 14"], ["imageable_id", 140], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["description", "image name 15"], ["imageable_id", 140], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["page_id", 246], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["height", 480], ["page_id", 246], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 246 [["pageable_type", "Article"], ["pageable_id", 246], ["updated_at", Mon, 16 Sep 2013 17:07:01 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 246]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 246]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 246], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 246]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 140], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:13 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/247/edit" for 127.0.0.1 at 2013-09-16 21:07:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"247"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "247"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 247], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:14 UTC +00:00], ["pageable_id", 247], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:07:14 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 247]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 247]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 247], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 247]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.9ms) Rendered admin/articles/edit.html.haml within layouts/application (57.7ms) Completed 200 OK in 105ms (Views: 71.6ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:07:14 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:07:14 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:07:14 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:07:14 +0400 Started GET "/redditor/admin/pages/247/text_blocks/new?content_block%5Btemp_id%5D=1379351235028" for 127.0.0.1 at 2013-09-16 21:07:15 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351235028"}, "page_id"=>"247"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "247"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 247]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 247], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (47.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (54.9ms) Completed 200 OK in 81ms (Views: 60.9ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:07:15 +0400  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 248], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 248 [["pageable_type", "Article"], ["pageable_id", 248], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 248]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 248]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 248], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 248]]  (0.3ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 249], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 1"], ["imageable_id", 141], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 2"], ["imageable_id", 141], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 3"], ["imageable_id", 141], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 249 [["pageable_type", "Article"], ["pageable_id", 249], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 249]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 249]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 249], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 249]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 141], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["height", 480], ["page_id", 250], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 250 [["pageable_type", "Article"], ["pageable_id", 250], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 250]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 250]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 250], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 250]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 251], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 4"], ["imageable_id", 142], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 5"], ["imageable_id", 142], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 6"], ["imageable_id", 142], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 251], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["height", 480], ["page_id", 251], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 251 [["pageable_type", "Article"], ["pageable_id", 251], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 251]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 251]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 251], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 251]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 252], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 7"], ["imageable_id", 143], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 8"], ["imageable_id", 143], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 9"], ["imageable_id", 143], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 252], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["height", 480], ["page_id", 252], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 252 [["pageable_type", "Article"], ["pageable_id", 252], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 252]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 252]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 252], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 252]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 143], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (30.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (34.9ms) Rendered articles/show.html.haml (41.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 253], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 10"], ["imageable_id", 144], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 11"], ["imageable_id", 144], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["description", "image name 12"], ["imageable_id", 144], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["page_id", 253], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["height", 480], ["page_id", 253], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 253 [["pageable_type", "Article"], ["pageable_id", 253], ["updated_at", Mon, 16 Sep 2013 17:07:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 253]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 253]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 253], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 253]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 144], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["page_id", 254], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["description", "image name 13"], ["imageable_id", 145], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["description", "image name 14"], ["imageable_id", 145], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["description", "image name 15"], ["imageable_id", 145], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["page_id", 254], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["height", 480], ["page_id", 254], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 254 [["pageable_type", "Article"], ["pageable_id", 254], ["updated_at", Mon, 16 Sep 2013 17:07:16 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 254]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 254]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 254], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 254]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 145], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["height", 480], ["page_id", 255], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 255 [["pageable_type", "Article"], ["pageable_id", 255], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 255]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 255]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 255], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 255]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["page_id", 256], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["description", "image name 1"], ["imageable_id", 146], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["description", "image name 2"], ["imageable_id", 146], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00], ["description", "image name 3"], ["imageable_id", 146], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:19 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 256], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["height", 480], ["page_id", 256], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 256 [["pageable_type", "Article"], ["pageable_id", 256], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 256]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 256]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 256], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 256]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 257], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 4"], ["imageable_id", 147], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 5"], ["imageable_id", 147], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 6"], ["imageable_id", 147], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 257 [["pageable_type", "Article"], ["pageable_id", 257], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 257]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 257]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 257], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 257]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 147], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 258], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 258 [["pageable_type", "Article"], ["pageable_id", 258], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 258]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 258]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 258], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 258]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 259], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 7"], ["imageable_id", 148], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 8"], ["imageable_id", 148], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 9"], ["imageable_id", 148], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 259], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["height", 480], ["page_id", 259], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 259 [["pageable_type", "Article"], ["pageable_id", 259], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 259]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 259]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 259], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 259]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 148], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (28.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (32.5ms) Rendered articles/show.html.haml (40.3ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 260], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 10"], ["imageable_id", 149], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 11"], ["imageable_id", 149], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 12"], ["imageable_id", 149], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 260], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["height", 480], ["page_id", 260], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 260 [["pageable_type", "Article"], ["pageable_id", 260], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 260]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 260]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 260], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 260]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 149], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 261], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 13"], ["imageable_id", 150], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 14"], ["imageable_id", 150], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["description", "image name 15"], ["imageable_id", 150], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["page_id", 261], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["height", 480], ["page_id", 261], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 261 [["pageable_type", "Article"], ["pageable_id", 261], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 261]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 261]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 261], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 261]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 150], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:08:20 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/262/edit" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"262"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "262"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 262], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:08:22 UTC +00:00], ["pageable_id", 262], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:08:22 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 262]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 262]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 262], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 262]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.6ms) Completed 200 OK in 57ms (Views: 45.4ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Started GET "/redditor/admin/pages/262/text_blocks/new?content_block%5Btemp_id%5D=1379351302642" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351302642"}, "page_id"=>"262"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "262"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 262]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 262], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.6ms) Completed 200 OK in 64ms (Views: 59.8ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:08:22 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["height", 480], ["page_id", 263], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 263 [["pageable_type", "Article"], ["pageable_id", 263], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 263]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 263]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 263], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 263]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["page_id", 264], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00], ["description", "image name 1"], ["imageable_id", 151], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:09:59 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 2"], ["imageable_id", 151], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 3"], ["imageable_id", 151], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 264 [["pageable_type", "Article"], ["pageable_id", 264], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 264]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 264]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 264], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 264]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 151], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 265], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 265 [["pageable_type", "Article"], ["pageable_id", 265], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 265]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 265]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 265], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 265]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 266], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 4"], ["imageable_id", 152], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 5"], ["imageable_id", 152], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 6"], ["imageable_id", 152], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 266], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["height", 480], ["page_id", 266], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 266 [["pageable_type", "Article"], ["pageable_id", 266], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 266]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 266]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 266], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 266]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/267/edit" for 127.0.0.1 at 2013-09-16 21:10:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"267"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "267"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 267], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["pageable_id", 267], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (12.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 267]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 267]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 267], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 267]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.8ms) Rendered admin/articles/edit.html.haml within layouts/application (33.0ms) Completed 200 OK in 66ms (Views: 47.1ms | ActiveRecord: 14.1ms) Started GET "/redditor/admin/pages/267/text_blocks/new" for 127.0.0.1 at 2013-09-16 21:10:00 +0400 Processing by Redditor::Admin::TextBlocksController#new as HTML Parameters: {"page_id"=>"267"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "267"]] Completed 400 Bad Request in 2ms  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (3.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 268], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 7"], ["imageable_id", 153], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 8"], ["imageable_id", 153], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 9"], ["imageable_id", 153], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 268], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["height", 480], ["page_id", 268], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 268 [["pageable_type", "Article"], ["pageable_id", 268], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 268]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 268]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 268], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 268]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 153], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (33.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.7ms) Rendered articles/show.html.haml (44.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 269], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 10"], ["imageable_id", 154], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 11"], ["imageable_id", 154], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 12"], ["imageable_id", 154], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 269], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["height", 480], ["page_id", 269], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 269 [["pageable_type", "Article"], ["pageable_id", 269], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 269]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 269]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 269], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 269]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 154], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 270], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 13"], ["imageable_id", 155], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 14"], ["imageable_id", 155], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["description", "image name 15"], ["imageable_id", 155], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["page_id", 270], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["height", 480], ["page_id", 270], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 270 [["pageable_type", "Article"], ["pageable_id", 270], ["updated_at", Mon, 16 Sep 2013 17:10:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 270]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 270]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 270], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 270]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 155], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["page_id", 271], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["description", "image name 1"], ["imageable_id", 156], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["description", "image name 2"], ["imageable_id", 156], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["description", "image name 3"], ["imageable_id", 156], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["page_id", 271], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["height", 480], ["page_id", 271], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 271 [["pageable_type", "Article"], ["pageable_id", 271], ["updated_at", Mon, 16 Sep 2013 17:10:13 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 271]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 271]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 271], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 271]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 156], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (29.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (52.0ms) Rendered articles/show.html.haml (60.8ms)  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 272], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 157], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 157], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 6"], ["imageable_id", 157], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 272], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["height", 480], ["page_id", 272], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 272 [["pageable_type", "Article"], ["pageable_id", 272], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 272]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 272]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 272], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 272]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 157], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.5ms) Rendered collection (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 273], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 7"], ["imageable_id", 158], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 8"], ["imageable_id", 158], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 9"], ["imageable_id", 158], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 273], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["height", 480], ["page_id", 273], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 273 [["pageable_type", "Article"], ["pageable_id", 273], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 273]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 273]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 273], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 273]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 158], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 274], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 10"], ["imageable_id", 159], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 11"], ["imageable_id", 159], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 12"], ["imageable_id", 159], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 274], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["height", 480], ["page_id", 274], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 274 [["pageable_type", "Article"], ["pageable_id", 274], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 274]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 274]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 274], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 274]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 275], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 13"], ["imageable_id", 160], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 14"], ["imageable_id", 160], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["description", "image name 15"], ["imageable_id", 160], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 275 [["pageable_type", "Article"], ["pageable_id", 275], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 275]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 275]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 275], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 275]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 160], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["height", 480], ["page_id", 276], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 276 [["pageable_type", "Article"], ["pageable_id", 276], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 276]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 276]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 276], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 276]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["page_id", 277], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 277 [["pageable_type", "Article"], ["pageable_id", 277], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 277]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 277]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 277], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 277]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:14 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/278/edit" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"278"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "278"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 278], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:16 UTC +00:00], ["pageable_id", 278], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:10:16 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 278]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 278]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 278], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 278]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.5ms) Completed 200 OK in 59ms (Views: 47.6ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Started GET "/redditor/admin/pages/278/text_blocks/new?content_block%5Btemp_id%5D=1379351416867" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351416867"}, "page_id"=>"278"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "278"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 278]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 278], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.8ms) Completed 200 OK in 59ms (Views: 55.2ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:10:16 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["page_id", 279], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["description", "image name 1"], ["imageable_id", 161], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["description", "image name 2"], ["imageable_id", 161], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["description", "image name 3"], ["imageable_id", 161], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00], ["page_id", 279], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:38 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["height", 480], ["page_id", 279], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 279 [["pageable_type", "Article"], ["pageable_id", 279], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 279]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 279]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 279], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 279]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 161], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (32.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (57.9ms) Rendered articles/show.html.haml (66.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 280], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 4"], ["imageable_id", 162], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 5"], ["imageable_id", 162], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 162], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 280], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["height", 480], ["page_id", 280], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 280 [["pageable_type", "Article"], ["pageable_id", 280], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 280]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 280]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 280], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 280]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 162], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 281], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 7"], ["imageable_id", 163], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 8"], ["imageable_id", 163], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 9"], ["imageable_id", 163], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 281], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["height", 480], ["page_id", 281], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 281 [["pageable_type", "Article"], ["pageable_id", 281], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 281]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 281]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 281], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 281]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 163], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 282], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 10"], ["imageable_id", 164], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 11"], ["imageable_id", 164], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 12"], ["imageable_id", 164], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 282], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["height", 480], ["page_id", 282], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 282 [["pageable_type", "Article"], ["pageable_id", 282], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 282]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 282]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 282], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 282]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["height", 480], ["page_id", 283], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 283 [["pageable_type", "Article"], ["pageable_id", 283], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 283]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 283]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 283], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 283]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 284], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 284 [["pageable_type", "Article"], ["pageable_id", 284], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 284]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 284]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 284], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 284]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["page_id", 285], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 13"], ["imageable_id", 165], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 14"], ["imageable_id", 165], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["description", "image name 15"], ["imageable_id", 165], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 285 [["pageable_type", "Article"], ["pageable_id", 285], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 285]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 285]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 285], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 285]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 165], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:10:39 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/286/edit" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"286"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "286"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 286], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:10:41 UTC +00:00], ["pageable_id", 286], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:10:41 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 286]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 286]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 286], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 286]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.5ms) Completed 200 OK in 58ms (Views: 47.6ms | ActiveRecord: 3.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Started GET "/redditor/admin/pages/286/text_blocks/new?content_block%5Btemp_id%5D=1379351441665" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351441665"}, "page_id"=>"286"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "286"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 286]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 286], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (39.5ms) Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:10:41 +0400 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:23 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:23 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/287/edit" for 127.0.0.1 at 2013-09-16 21:14:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"287"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "287"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 287], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:25 UTC +00:00], ["pageable_id", 287], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:14:25 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 287]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 287]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 287], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 287]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (29.9ms) Rendered admin/articles/edit.html.haml within layouts/application (55.5ms) Completed 200 OK in 102ms (Views: 69.3ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:14:25 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:14:25 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:14:25 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:14:25 +0400  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["page_id", 288], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["description", "image name 1"], ["imageable_id", 166], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["description", "image name 2"], ["imageable_id", 166], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["description", "image name 3"], ["imageable_id", 166], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["page_id", 288], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["height", 480], ["page_id", 288], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 288 [["pageable_type", "Article"], ["pageable_id", 288], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 288]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 288]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 288], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 288]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 166], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.7ms) Rendered collection (36.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (43.0ms) Rendered articles/show.html.haml (49.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00], ["page_id", 289], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 4"], ["imageable_id", 167], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 5"], ["imageable_id", 167], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 6"], ["imageable_id", 167], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 289], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["height", 480], ["page_id", 289], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 289 [["pageable_type", "Article"], ["pageable_id", 289], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 289]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 289]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 289], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 289]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 167], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 290], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 7"], ["imageable_id", 168], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 8"], ["imageable_id", 168], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 9"], ["imageable_id", 168], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 290], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["height", 480], ["page_id", 290], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 290 [["pageable_type", "Article"], ["pageable_id", 290], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 290]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 290]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 290], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 290]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 168], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 291], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 291 [["pageable_type", "Article"], ["pageable_id", 291], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 291]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 291]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 291], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 291]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 292], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 10"], ["imageable_id", 169], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 11"], ["imageable_id", 169], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 12"], ["imageable_id", 169], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 292 [["pageable_type", "Article"], ["pageable_id", 292], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 292]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 292]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 292], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 292]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 169], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 293], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 13"], ["imageable_id", 170], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 14"], ["imageable_id", 170], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["description", "image name 15"], ["imageable_id", 170], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["page_id", 293], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["height", 480], ["page_id", 293], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 293 [["pageable_type", "Article"], ["pageable_id", 293], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 293]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 293]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 293], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 293]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["height", 480], ["page_id", 294], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 294 [["pageable_type", "Article"], ["pageable_id", 294], ["updated_at", Mon, 16 Sep 2013 17:14:28 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 294]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 294]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 294], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 294]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["height", 480], ["page_id", 295], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (3.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 295 [["pageable_type", "Article"], ["pageable_id", 295], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 295]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 295]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 295], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 295]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["page_id", 296], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 296 [["pageable_type", "Article"], ["pageable_id", 296], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 296]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 296]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 296], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 296]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["page_id", 297], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 1"], ["imageable_id", 171], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 2"], ["imageable_id", 171], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 3"], ["imageable_id", 171], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 297 [["pageable_type", "Article"], ["pageable_id", 297], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 297]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 297]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 297], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 297]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 171], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["page_id", 298], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 4"], ["imageable_id", 172], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 5"], ["imageable_id", 172], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["description", "image name 6"], ["imageable_id", 172], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["page_id", 298], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["height", 480], ["page_id", 298], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 298 [["pageable_type", "Article"], ["pageable_id", 298], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 298]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 298]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 298], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 298]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:44 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/299/edit" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"299"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "299"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 299], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["pageable_id", 299], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 299]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 299]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 299], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 299]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.1ms) Rendered admin/articles/edit.html.haml within layouts/application (37.2ms) Completed 200 OK in 62ms (Views: 51.1ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Started GET "/redditor/admin/pages/299/text_blocks/new?content_block%5Btemp_id%5D=1379351686660" for 127.0.0.1 at 2013-09-16 21:14:46 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379351686660"}, "page_id"=>"299"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "299"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 299]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 299], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.1ms) Completed 200 OK in 60ms (Views: 54.9ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:14:46 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["page_id", 300], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 173], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 173], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 173], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["page_id", 300], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["height", 480], ["page_id", 300], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 300 [["pageable_type", "Article"], ["pageable_id", 300], ["updated_at", Mon, 16 Sep 2013 17:14:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 300]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 300]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 300], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 300]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 173], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (31.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.0ms) Rendered articles/show.html.haml (44.6ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["page_id", 301], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 10"], ["imageable_id", 174], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 11"], ["imageable_id", 174], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 12"], ["imageable_id", 174], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["page_id", 301], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["height", 480], ["page_id", 301], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 301 [["pageable_type", "Article"], ["pageable_id", 301], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 301]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 301]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 301], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 301]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 174], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["page_id", 302], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 13"], ["imageable_id", 175], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 14"], ["imageable_id", 175], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["description", "image name 15"], ["imageable_id", 175], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["page_id", 302], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["height", 480], ["page_id", 302], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 302 [["pageable_type", "Article"], ["pageable_id", 302], ["updated_at", Mon, 16 Sep 2013 17:14:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 302]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 302]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 302], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 302]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 175], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:35 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/303/edit" for 127.0.0.1 at 2013-09-16 21:15:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"303"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "303"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 303], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:37 UTC +00:00], ["pageable_id", 303], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:15:37 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 303]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 303]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 303], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 303]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (29.9ms) Rendered admin/articles/edit.html.haml within layouts/application (55.4ms) Completed 200 OK in 103ms (Views: 70.3ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:15:37 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:15:37 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:15:37 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:15:37 +0400  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 304], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 1"], ["imageable_id", 176], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 2"], ["imageable_id", 176], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 3"], ["imageable_id", 176], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 304], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["height", 480], ["page_id", 304], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 304 [["pageable_type", "Article"], ["pageable_id", 304], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 304]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 304]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 304], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 304]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 176], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (35.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.3ms) Rendered articles/show.html.haml (48.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 305], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 4"], ["imageable_id", 177], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 5"], ["imageable_id", 177], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 177], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 305], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["height", 480], ["page_id", 305], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 305 [["pageable_type", "Article"], ["pageable_id", 305], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 305]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 305]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 305], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 305]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 177], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 306], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 7"], ["imageable_id", 178], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 8"], ["imageable_id", 178], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 9"], ["imageable_id", 178], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 306], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["height", 480], ["page_id", 306], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 306 [["pageable_type", "Article"], ["pageable_id", 306], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 306]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 306]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 306], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 306]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 178], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 307], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 307 [["pageable_type", "Article"], ["pageable_id", 307], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 307]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 307]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 307], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 307]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["page_id", 308], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00], ["description", "image name 10"], ["imageable_id", 179], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["description", "image name 11"], ["imageable_id", 179], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["description", "image name 12"], ["imageable_id", 179], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["page_id", 308], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["height", 480], ["page_id", 308], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 308 [["pageable_type", "Article"], ["pageable_id", 308], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 308]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 308]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 308], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 308]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["page_id", 309], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["description", "image name 13"], ["imageable_id", 180], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["description", "image name 14"], ["imageable_id", 180], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["description", "image name 15"], ["imageable_id", 180], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 309 [["pageable_type", "Article"], ["pageable_id", 309], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 309]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 309]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 309], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 309]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 180], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["height", 480], ["page_id", 310], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 310 [["pageable_type", "Article"], ["pageable_id", 310], ["updated_at", Mon, 16 Sep 2013 17:15:40 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 310]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 310]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 310], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 310]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:33 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:33 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/311/edit" for 127.0.0.1 at 2013-09-16 21:20:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"311"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "311"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 311], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:35 UTC +00:00], ["pageable_id", 311], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:20:35 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 311]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 311]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 311], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 311]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.3ms) Rendered admin/articles/edit.html.haml within layouts/application (59.9ms) Completed 200 OK in 107ms (Views: 74.9ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:20:36 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:20:36 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:20:36 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:20:36 +0400 Started GET "/redditor/admin/pages/311/text_blocks/new?content_block%5Btemp_id%5D=1379352036175" for 127.0.0.1 at 2013-09-16 21:20:36 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379352036175"}, "page_id"=>"311"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "311"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 311]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 311], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.8ms) Completed 200 OK in 76ms (Views: 58.5ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:20:36 +0400  (0.5ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 312], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 312 [["pageable_type", "Article"], ["pageable_id", 312], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 312]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 312]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 312], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 312]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["height", 480], ["page_id", 313], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 313 [["pageable_type", "Article"], ["pageable_id", 313], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 313]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 313]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 313], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 313]]  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 314], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 1"], ["imageable_id", 181], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 2"], ["imageable_id", 181], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 3"], ["imageable_id", 181], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 314], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["height", 480], ["page_id", 314], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 314 [["pageable_type", "Article"], ["pageable_id", 314], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 314]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 314]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 314], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 314]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 315], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 4"], ["imageable_id", 182], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 5"], ["imageable_id", 182], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 6"], ["imageable_id", 182], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 315 [["pageable_type", "Article"], ["pageable_id", 315], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 315]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 315]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 315], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 315]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 182], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 316], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 7"], ["imageable_id", 183], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 8"], ["imageable_id", 183], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["description", "image name 9"], ["imageable_id", 183], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 316], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["height", 480], ["page_id", 316], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 316 [["pageable_type", "Article"], ["pageable_id", 316], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 316]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 316]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 316], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 316]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 183], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (30.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (35.5ms) Rendered articles/show.html.haml (42.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00], ["page_id", 317], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 10"], ["imageable_id", 184], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 11"], ["imageable_id", 184], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 12"], ["imageable_id", 184], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["page_id", 317], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["height", 480], ["page_id", 317], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 317 [["pageable_type", "Article"], ["pageable_id", 317], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 317]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 317]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 317], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 317]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 184], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["page_id", 318], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 13"], ["imageable_id", 185], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 14"], ["imageable_id", 185], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["description", "image name 15"], ["imageable_id", 185], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["page_id", 318], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["height", 480], ["page_id", 318], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 318 [["pageable_type", "Article"], ["pageable_id", 318], ["updated_at", Mon, 16 Sep 2013 17:20:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 318]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 318]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 318], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 318]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 185], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:02 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:02 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/319/edit" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"319"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "319"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 319], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["pageable_id", 319], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 319]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 319]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 319], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 319]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.2ms) Rendered admin/articles/edit.html.haml within layouts/application (57.1ms) Completed 200 OK in 103ms (Views: 70.5ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Started GET "/redditor/admin/pages/319/text_blocks/new?content_block%5Btemp_id%5D=1379352064402" for 127.0.0.1 at 2013-09-16 21:21:04 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379352064402"}, "page_id"=>"319"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "319"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 319]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 319], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.5ms) Completed 200 OK in 76ms (Views: 58.5ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:21:04 +0400  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["page_id", 320], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 320 [["pageable_type", "Article"], ["pageable_id", 320], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 320]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 320]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 320], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 320]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["height", 480], ["page_id", 321], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 321 [["pageable_type", "Article"], ["pageable_id", 321], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 321]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 321]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 321], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 321]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["page_id", 322], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 1"], ["imageable_id", 186], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 2"], ["imageable_id", 186], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 3"], ["imageable_id", 186], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 322 [["pageable_type", "Article"], ["pageable_id", 322], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 322]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 322]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 322], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 322]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 186], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["page_id", 323], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 187], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 187], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 187], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["page_id", 323], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["height", 480], ["page_id", 323], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 323 [["pageable_type", "Article"], ["pageable_id", 323], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 323]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 323]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 323], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 323]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00], ["page_id", 324], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 7"], ["imageable_id", 188], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 8"], ["imageable_id", 188], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 9"], ["imageable_id", 188], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["page_id", 324], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["height", 480], ["page_id", 324], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 324 [["pageable_type", "Article"], ["pageable_id", 324], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 324]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 324]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 324], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 324]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 188], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (31.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.2ms) Rendered articles/show.html.haml (42.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["page_id", 325], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 10"], ["imageable_id", 189], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 11"], ["imageable_id", 189], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 12"], ["imageable_id", 189], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["page_id", 325], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["height", 480], ["page_id", 325], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 325 [["pageable_type", "Article"], ["pageable_id", 325], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 325]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 325]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 325], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 325]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 189], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["page_id", 326], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 13"], ["imageable_id", 190], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 14"], ["imageable_id", 190], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["description", "image name 15"], ["imageable_id", 190], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["page_id", 326], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["height", 480], ["page_id", 326], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 326 [["pageable_type", "Article"], ["pageable_id", 326], ["updated_at", Mon, 16 Sep 2013 17:21:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 326]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 326]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 326], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 326]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 190], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["page_id", 327], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["description", "image name 1"], ["imageable_id", 191], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["description", "image name 2"], ["imageable_id", 191], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["description", "image name 3"], ["imageable_id", 191], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["page_id", 327], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["height", 480], ["page_id", 327], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 327 [["pageable_type", "Article"], ["pageable_id", 327], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 327]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 327]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 327], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 327]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 191], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (29.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (50.7ms) Rendered articles/show.html.haml (58.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00], ["page_id", 328], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:26 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 4"], ["imageable_id", 192], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 192], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 192], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["page_id", 328], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["height", 480], ["page_id", 328], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 328 [["pageable_type", "Article"], ["pageable_id", 328], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 328]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 328]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 328], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 328]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 192], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["page_id", 329], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 7"], ["imageable_id", 193], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 8"], ["imageable_id", 193], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["description", "image name 9"], ["imageable_id", 193], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["page_id", 329], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["height", 480], ["page_id", 329], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 329 [["pageable_type", "Article"], ["pageable_id", 329], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 329]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 329]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 329], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 329]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 193], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:27 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/330/edit" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"330"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "330"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 330], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:29 UTC +00:00], ["pageable_id", 330], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:21:29 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 330]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 330]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 330], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 330]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.1ms) Completed 200 OK in 60ms (Views: 49.1ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Started GET "/redditor/admin/pages/330/text_blocks/new?content_block%5Btemp_id%5D=1379352089265" for 127.0.0.1 at 2013-09-16 21:21:29 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379352089265"}, "page_id"=>"330"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "330"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 330]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 330], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (41.2ms) Completed 200 OK in 57ms (Views: 53.5ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:21:29 +0400  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["page_id", 331], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 10"], ["imageable_id", 194], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 11"], ["imageable_id", 194], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 12"], ["imageable_id", 194], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["page_id", 331], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["height", 480], ["page_id", 331], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 331 [["pageable_type", "Article"], ["pageable_id", 331], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 331]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 331]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 331], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 331]]  (0.4ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["page_id", 332], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 332 [["pageable_type", "Article"], ["pageable_id", 332], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 332]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 332]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 332], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 332]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["page_id", 333], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 13"], ["imageable_id", 195], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 195], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 195], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 333 [["pageable_type", "Article"], ["pageable_id", 333], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 333]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 333]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 333], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 333]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 195], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["height", 480], ["page_id", 334], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 334 [["pageable_type", "Article"], ["pageable_id", 334], ["updated_at", Mon, 16 Sep 2013 17:21:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 334]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 334]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 334], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 334]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["page_id", 335], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["description", "image name 1"], ["imageable_id", 196], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["description", "image name 2"], ["imageable_id", 196], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["description", "image name 3"], ["imageable_id", 196], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["page_id", 335], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["height", 480], ["page_id", 335], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 335 [["pageable_type", "Article"], ["pageable_id", 335], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 335]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 335]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 335], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 335]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 196], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (32.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.0ms) Rendered articles/show.html.haml (63.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["page_id", 336], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["description", "image name 4"], ["imageable_id", 197], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00], ["description", "image name 5"], ["imageable_id", 197], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 6"], ["imageable_id", 197], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 336], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["height", 480], ["page_id", 336], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 336 [["pageable_type", "Article"], ["pageable_id", 336], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 336]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 336]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 336], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 336]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 197], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (2.9ms) Rendered collection (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 337], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 7"], ["imageable_id", 198], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 8"], ["imageable_id", 198], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 9"], ["imageable_id", 198], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 337], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["height", 480], ["page_id", 337], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 337 [["pageable_type", "Article"], ["pageable_id", 337], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 337]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 337]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 337], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 337]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 198], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 338], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 10"], ["imageable_id", 199], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 11"], ["imageable_id", 199], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 12"], ["imageable_id", 199], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 338], ["position", 2], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["height", 480], ["page_id", 338], ["position", 3], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 338 [["pageable_type", "Article"], ["pageable_id", 338], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 338]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 338]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 338], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 338]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["height", 480], ["page_id", 339], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 339 [["pageable_type", "Article"], ["pageable_id", 339], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 339]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 339]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 339], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 339]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 340], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 13"], ["imageable_id", 200], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 14"], ["imageable_id", 200], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["description", "image name 15"], ["imageable_id", 200], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 340 [["pageable_type", "Article"], ["pageable_id", 340], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 340]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 340]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 340], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 340]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 200], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["page_id", 341], ["position", 1], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 341 [["pageable_type", "Article"], ["pageable_id", 341], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 341]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 341]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 341], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 341]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 17:22:57 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/342/edit" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"342"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "342"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 342], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 17:22:59 UTC +00:00], ["pageable_id", 342], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 17:22:59 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 342]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 342]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 342], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 342]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.5ms) Completed 200 OK in 58ms (Views: 47.1ms | ActiveRecord: 5.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Started GET "/redditor/admin/pages/342/text_blocks/new?content_block%5Btemp_id%5D=1379352179451" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379352179451"}, "page_id"=>"342"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "342"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 342]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 342], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.0ms) Completed 200 OK in 59ms (Views: 55.3ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Started PATCH "/admin/articles/342" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379352179451"=>{"position"=>"", "body"=>"test text block", "temp_id"=>"1379352179451"}}, "id"=>"342"}}, "commit"=>"Submit", "id"=>"342"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "342"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 342], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redirected to http://127.0.0.1:60079/admin/articles/342/edit Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Started GET "/admin/articles/342/edit" for 127.0.0.1 at 2013-09-16 21:22:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"342"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "342"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 342], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 342]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 342]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 342], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 342]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:03 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:03 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 343], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 1"], ["imageable_id", 201], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 2"], ["imageable_id", 201], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (16.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 3"], ["imageable_id", 201], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 343], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["height", 480], ["page_id", 343], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 343 [["pageable_type", "Article"], ["pageable_id", 343], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 343]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 343]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 343], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 343]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 201], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (34.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (57.3ms) Rendered articles/show.html.haml (66.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 344], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 202], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 202], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 202], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 344], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["height", 480], ["page_id", 344], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 344 [["pageable_type", "Article"], ["pageable_id", 344], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 344]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 344]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 344], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 344]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 202], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 345], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 7"], ["imageable_id", 203], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 8"], ["imageable_id", 203], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 9"], ["imageable_id", 203], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 345], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["height", 480], ["page_id", 345], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 345 [["pageable_type", "Article"], ["pageable_id", 345], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 345]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 345]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 345], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 345]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 203], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 346], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 10"], ["imageable_id", 204], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 11"], ["imageable_id", 204], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 12"], ["imageable_id", 204], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 346], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["height", 480], ["page_id", 346], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 346 [["pageable_type", "Article"], ["pageable_id", 346], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 346]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 346]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 346], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 346]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 347], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 13"], ["imageable_id", 205], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 14"], ["imageable_id", 205], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["description", "image name 15"], ["imageable_id", 205], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 347 [["pageable_type", "Article"], ["pageable_id", 347], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 347]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 347]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 347], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 347]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 205], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["height", 480], ["page_id", 348], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 348 [["pageable_type", "Article"], ["pageable_id", 348], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 348]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 348]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 348], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 348]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["page_id", 349], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 349 [["pageable_type", "Article"], ["pageable_id", 349], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 349]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 349]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 349], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 349]] Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:04 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/350/edit" for 127.0.0.1 at 2013-09-16 23:15:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"350"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "350"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 350], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:06 UTC +00:00], ["pageable_id", 350], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:15:06 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 350]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 350]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 350], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 350]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Completed 200 OK in 318ms (Views: 306.5ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Started GET "/redditor/admin/pages/350/text_blocks/new?content_block%5Btemp_id%5D=1379358907411" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379358907411"}, "page_id"=>"350"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "350"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 350]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 350], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.2ms) Completed 200 OK in 61ms (Views: 57.4ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Started PATCH "/admin/articles/350" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379358907411"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379358907411"}}, "id"=>"350"}}, "commit"=>"Submit", "id"=>"350"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "350"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 350], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:15:07 UTC +00:00], ["page_id", 350], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:15:07 UTC +00:00]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:62749/admin/articles/350/edit Completed 302 Found in 9ms (ActiveRecord: 2.3ms) Started GET "/admin/articles/350/edit" for 127.0.0.1 at 2013-09-16 23:15:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"350"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "350"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 350], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 350]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 350]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 350], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 350]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.8ms) Completed 200 OK in 28ms (Views: 25.5ms | ActiveRecord: 0.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:56 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:15:56 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/351/edit" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"351"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "351"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 351], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:15:58 UTC +00:00], ["pageable_id", 351], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:15:58 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 351]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 351]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 351], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 351]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.7ms) Rendered admin/articles/edit.html.haml within layouts/application (57.7ms) Completed 200 OK in 111ms (Views: 72.1ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Started GET "/redditor/admin/pages/351/text_blocks/new?content_block%5Btemp_id%5D=1379358958777" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379358958777"}, "page_id"=>"351"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "351"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 351]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 351], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (40.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.4ms) Completed 200 OK in 74ms (Views: 56.2ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Started PATCH "/admin/articles/351" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379358958777"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379358958777"}}, "id"=>"351"}}, "commit"=>"Submit", "id"=>"351"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "351"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 351], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:15:58 UTC +00:00], ["page_id", 351], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:15:58 UTC +00:00]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:62761/admin/articles/351/edit Completed 302 Found in 10ms (ActiveRecord: 3.0ms) Started GET "/admin/articles/351/edit" for 127.0.0.1 at 2013-09-16 23:15:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"351"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "351"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 351], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 351]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 351]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 351], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 351]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.3ms) Rendered admin/articles/edit.html.haml within layouts/application (24.0ms) Completed 200 OK in 28ms (Views: 23.5ms | ActiveRecord: 2.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["page_id", 352], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 1"], ["imageable_id", 206], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 2"], ["imageable_id", 206], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 3"], ["imageable_id", 206], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 352 [["pageable_type", "Article"], ["pageable_id", 352], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 352]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 352]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 352], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 352]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 206], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["height", 480], ["page_id", 353], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 353 [["pageable_type", "Article"], ["pageable_id", 353], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 353]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 353]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 353], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 353]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["page_id", 354], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 354 [["pageable_type", "Article"], ["pageable_id", 354], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 354]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 354]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 354], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 354]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["page_id", 355], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 4"], ["imageable_id", 207], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 5"], ["imageable_id", 207], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["description", "image name 6"], ["imageable_id", 207], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["page_id", 355], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["height", 480], ["page_id", 355], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 355 [["pageable_type", "Article"], ["pageable_id", 355], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 355]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 355]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 355], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 355]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:05 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/356/edit" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"356"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "356"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 356], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:07 UTC +00:00], ["pageable_id", 356], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:16:07 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 356]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 356]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 356], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 356]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.1ms) Rendered admin/articles/edit.html.haml within layouts/application (40.3ms) Completed 200 OK in 67ms (Views: 55.3ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Started GET "/redditor/admin/pages/356/text_blocks/new?content_block%5Btemp_id%5D=1379358967878" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379358967878"}, "page_id"=>"356"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "356"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 356]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 356], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.0ms) Completed 200 OK in 62ms (Views: 57.4ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:16:07 +0400 Started PATCH "/admin/articles/356" for 127.0.0.1 at 2013-09-16 23:16:08 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379358967878"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379358967878"}}, "id"=>"356"}}, "commit"=>"Submit", "id"=>"356"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "356"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 356], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 356], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:62771/admin/articles/356/edit Completed 302 Found in 9ms (ActiveRecord: 2.9ms) Started GET "/admin/articles/356/edit" for 127.0.0.1 at 2013-09-16 23:16:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"356"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "356"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 356], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 356]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 356]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 356], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 356]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.7ms) Rendered admin/articles/edit.html.haml within layouts/application (23.6ms) Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 1.6ms)  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 357], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 7"], ["imageable_id", 208], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 8"], ["imageable_id", 208], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 9"], ["imageable_id", 208], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 357], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["height", 480], ["page_id", 357], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 357 [["pageable_type", "Article"], ["pageable_id", 357], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 357]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 357]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 357], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 357]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 208], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (36.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (44.9ms) Rendered articles/show.html.haml (53.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 358], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 10"], ["imageable_id", 209], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 11"], ["imageable_id", 209], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 12"], ["imageable_id", 209], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 358], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["height", 480], ["page_id", 358], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 358 [["pageable_type", "Article"], ["pageable_id", 358], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 358]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 358]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 358], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 358]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 209], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 359], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 13"], ["imageable_id", 210], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 14"], ["imageable_id", 210], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["description", "image name 15"], ["imageable_id", 210], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["page_id", 359], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["height", 480], ["page_id", 359], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 359 [["pageable_type", "Article"], ["pageable_id", 359], ["updated_at", Mon, 16 Sep 2013 19:16:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 359]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 359]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 359], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 359]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 210], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:47 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:47 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/360/edit" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"360"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "360"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 360], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00], ["pageable_id", 360], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 360]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 360]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 360], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 360]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.0ms) Rendered admin/articles/edit.html.haml within layouts/application (59.1ms) Completed 200 OK in 109ms (Views: 73.8ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Started GET "/redditor/admin/pages/360/text_blocks/new?content_block%5Btemp_id%5D=1379359129274" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359129274"}, "page_id"=>"360"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "360"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 360]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 360], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (53.0ms) Completed 200 OK in 76ms (Views: 59.5ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Started PATCH "/admin/articles/360" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379359129274"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359129274"}}, "id"=>"360"}}, "commit"=>"Submit", "id"=>"360"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "360"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 360], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00], ["page_id", 360], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:62785/admin/articles/360/edit Completed 302 Found in 10ms (ActiveRecord: 3.2ms) Started GET "/admin/articles/360/edit" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"360"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "360"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 360], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 360]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 360]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 360], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 360]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.2ms) Rendered admin/articles/edit.html.haml within layouts/application (20.9ms) Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.6ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/361/edit" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"361"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "361"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 361], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00], ["pageable_id", 361], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:18:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 361]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 361]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 361], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 361]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/361/text_blocks/new?content_block%5Btemp_id%5D=1379359129620" for 127.0.0.1 at 2013-09-16 23:18:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359129620"}, "page_id"=>"361"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "361"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 361]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 361], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.3ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.8ms) Article Load (2.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["page_id", 362], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 362 [["pageable_type", "Article"], ["pageable_id", 362], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 362]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 362]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 362], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 362]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["height", 480], ["page_id", 363], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 363 [["pageable_type", "Article"], ["pageable_id", 363], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 363]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 363]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 363], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 363]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["page_id", 364], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["description", "image name 1"], ["imageable_id", 211], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["description", "image name 2"], ["imageable_id", 211], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["description", "image name 3"], ["imageable_id", 211], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 364 [["pageable_type", "Article"], ["pageable_id", 364], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 364]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 364]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 364], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 364]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 211], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00], ["page_id", 365], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 4"], ["imageable_id", 212], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 5"], ["imageable_id", 212], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 6"], ["imageable_id", 212], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 365], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["height", 480], ["page_id", 365], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 365 [["pageable_type", "Article"], ["pageable_id", 365], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 365]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 365]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 365], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 365]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 366], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 7"], ["imageable_id", 213], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 8"], ["imageable_id", 213], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 9"], ["imageable_id", 213], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 366], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["height", 480], ["page_id", 366], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 366 [["pageable_type", "Article"], ["pageable_id", 366], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 366]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 366]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 366], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 366]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 213], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.5ms) Rendered collection (34.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (39.0ms) Rendered articles/show.html.haml (46.2ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 367], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 10"], ["imageable_id", 214], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 11"], ["imageable_id", 214], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 12"], ["imageable_id", 214], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 367], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["height", 480], ["page_id", 367], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 367 [["pageable_type", "Article"], ["pageable_id", 367], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 367]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 367]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 367], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 367]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 214], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 368], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 13"], ["imageable_id", 215], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 14"], ["imageable_id", 215], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["description", "image name 15"], ["imageable_id", 215], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["page_id", 368], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["height", 480], ["page_id", 368], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 368 [["pageable_type", "Article"], ["pageable_id", 368], ["updated_at", Mon, 16 Sep 2013 19:18:52 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 368]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 368]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 368], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 368]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 215], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:08 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:08 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/369/edit" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"369"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "369"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 369], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00], ["pageable_id", 369], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 369]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 369]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 369], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 369]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.0ms) Rendered admin/articles/edit.html.haml within layouts/application (57.0ms) Completed 200 OK in 103ms (Views: 71.0ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Started GET "/redditor/admin/pages/369/text_blocks/new?content_block%5Btemp_id%5D=1379359150261" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359150261"}, "page_id"=>"369"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "369"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 369]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 369], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.6ms) Completed 200 OK in 75ms (Views: 56.4ms | ActiveRecord: 1.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Started PATCH "/admin/articles/369" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379359150261"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359150261"}}, "id"=>"369"}}, "commit"=>"Submit", "id"=>"369"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "369"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 369], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00], ["page_id", 369], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:62798/admin/articles/369/edit Completed 302 Found in 10ms (ActiveRecord: 3.2ms) Started GET "/admin/articles/369/edit" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"369"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "369"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 369], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 369]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 369]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 369], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 369]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.5ms) Rendered admin/articles/edit.html.haml within layouts/application (21.1ms) Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.7ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/370/edit" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"370"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "370"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 370], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00], ["pageable_id", 370], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:10 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 370]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 370]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 370], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 370]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.9ms) Rendered admin/articles/edit.html.haml within layouts/application (9.5ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 3.3ms) Started GET "/redditor/admin/pages/370/text_blocks/new?content_block%5Btemp_id%5D=1379359150591" for 127.0.0.1 at 2013-09-16 23:19:10 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359150591"}, "page_id"=>"370"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "370"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 370]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 370], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.6ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:30 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:30 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/371/edit" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"371"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "371"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 371], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00], ["pageable_id", 371], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 371]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 371]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 371], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 371]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.4ms) Rendered admin/articles/edit.html.haml within layouts/application (61.0ms) Completed 200 OK in 119ms (Views: 79.9ms | ActiveRecord: 5.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Started GET "/redditor/admin/pages/371/text_blocks/new?content_block%5Btemp_id%5D=1379359172599" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359172599"}, "page_id"=>"371"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "371"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 371]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 371], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.1ms) Completed 200 OK in 74ms (Views: 57.6ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Started PATCH "/admin/articles/371" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379359172599"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359172599"}}, "id"=>"371"}}, "commit"=>"Submit", "id"=>"371"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "371"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 371], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00], ["page_id", 371], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:62822/admin/articles/371/edit Completed 302 Found in 10ms (ActiveRecord: 3.0ms) Started GET "/admin/articles/371/edit" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"371"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "371"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 371], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 371]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 371]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 371], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 371]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.9ms) Rendered admin/articles/edit.html.haml within layouts/application (23.7ms) Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 1.5ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/372/edit" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"372"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "372"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 372], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00], ["pageable_id", 372], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 372]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 372]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 372], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 372]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/372/text_blocks/new?content_block%5Btemp_id%5D=1379359172942" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359172942"}, "page_id"=>"372"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "372"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 372]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 372], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.8ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/372/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379359172942" for 127.0.0.1 at 2013-09-16 23:19:32 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359172942"}, "page_id"=>"372"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "372"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00], ["page_id", 372], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:19:32 UTC +00:00]]  (2.5ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 372]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 372], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Started GET "/admin/articles/372/edit" for 127.0.0.1 at 2013-09-16 23:19:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"372"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "372"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 372], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 372]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 372]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 372], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 372]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.1ms) Rendered admin/articles/edit.html.haml within layouts/application (18.7ms) Completed 200 OK in 23ms (Views: 19.4ms | ActiveRecord: 0.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (140.4ms) Completed in 153ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["height", 480], ["page_id", 373], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 373 [["pageable_type", "Article"], ["pageable_id", 373], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 373]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 373]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 373], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 373]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["page_id", 374], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 1"], ["imageable_id", 216], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 2"], ["imageable_id", 216], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 3"], ["imageable_id", 216], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 374 [["pageable_type", "Article"], ["pageable_id", 374], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 374]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 374]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 374], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 374]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 216], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["page_id", 375], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 375 [["pageable_type", "Article"], ["pageable_id", 375], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 375]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 375]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 375], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 375]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["page_id", 376], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 4"], ["imageable_id", 217], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 5"], ["imageable_id", 217], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["description", "image name 6"], ["imageable_id", 217], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["page_id", 376], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["height", 480], ["page_id", 376], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 376 [["pageable_type", "Article"], ["pageable_id", 376], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 376]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 376]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 376], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 376]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:37 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/377/edit" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"377"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "377"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 377], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:39 UTC +00:00], ["pageable_id", 377], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:39 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 377]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 377]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 377], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 377]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.8ms) Rendered admin/articles/edit.html.haml within layouts/application (39.2ms) Completed 200 OK in 65ms (Views: 54.6ms | ActiveRecord: 4.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Started GET "/redditor/admin/pages/377/text_blocks/new?content_block%5Btemp_id%5D=1379359179857" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359179857"}, "page_id"=>"377"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "377"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 377]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 377], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.8ms) Completed 200 OK in 63ms (Views: 59.1ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-16 23:19:39 +0400 Started POST "/redditor/admin/pages/377/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379359179857" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359179857"}, "page_id"=>"377"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "377"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 377], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 377]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 377], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.9ms) Started GET "/admin/articles/377/edit" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"377"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "377"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 377], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 377]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 377]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 377], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 377]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.9ms) Rendered admin/articles/edit.html.haml within layouts/application (22.8ms) Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 0.6ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/378/edit" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"378"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "378"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 378], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["pageable_id", 378], ["pageable_type", "Article"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 378]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 378]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 378], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 378]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (9.3ms) Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (167.4ms) Completed 200 OK in 180ms (Views: 173.6ms | ActiveRecord: 3.1ms) Started GET "/redditor/admin/pages/378/text_blocks/new?content_block%5Btemp_id%5D=1379359180241" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379359180241"}, "page_id"=>"378"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "378"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 378]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 378], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.6ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/378" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379359180241"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379359180241"}}, "id"=>"378"}}, "commit"=>"Submit", "id"=>"378"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "378"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 378], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 378], ["position", 0], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (2.0ms) commit transaction Redirected to http://127.0.0.1:62834/admin/articles/378/edit Completed 302 Found in 9ms (ActiveRecord: 2.9ms) Started GET "/admin/articles/378/edit" for 127.0.0.1 at 2013-09-16 23:19:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"378"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "378"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 378], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 378]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 378]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 378], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 378]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.5ms) Rendered admin/articles/edit.html.haml within layouts/application (12.3ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 379], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 7"], ["imageable_id", 218], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 8"], ["imageable_id", 218], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 9"], ["imageable_id", 218], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 379], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["height", 480], ["page_id", 379], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 379 [["pageable_type", "Article"], ["pageable_id", 379], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 379]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 379]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 379], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 379]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 218], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.6ms) Rendered collection (33.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (40.2ms) Rendered articles/show.html.haml (47.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 380], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 10"], ["imageable_id", 219], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 11"], ["imageable_id", 219], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 12"], ["imageable_id", 219], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 380], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["height", 480], ["page_id", 380], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 380 [["pageable_type", "Article"], ["pageable_id", 380], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 380]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 380]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 380], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 380]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 219], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 381], ["position", 1], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 13"], ["imageable_id", 220], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 14"], ["imageable_id", 220], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["description", "image name 15"], ["imageable_id", 220], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["page_id", 381], ["position", 2], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["height", 480], ["page_id", 381], ["position", 3], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 381 [["pageable_type", "Article"], ["pageable_id", 381], ["updated_at", Mon, 16 Sep 2013 19:19:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 381]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 381]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 381], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 381]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 220], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 16 Sep 2013 19:20:08 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 16 Sep 2013 19:20:08 UTC +00:00]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:40 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/383/edit" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"383"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "383"]] Redditor::Page Load (0.6ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 383], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00], ["pageable_id", 383], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.6ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 382]] Redditor::VideoBlock Load (0.7ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 382]] Redditor::Image Load (0.7ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 382], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.5ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 382]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.1ms) Rendered admin/articles/edit.html.haml within layouts/application (71.0ms) Completed 200 OK in 143ms (Views: 106.7ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Started GET "/redditor/admin/pages/382/text_blocks/new?content_block%5Btemp_id%5D=1379414202612" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414202612"}, "page_id"=>"382"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "382"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 383]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 383], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.0ms) Completed 200 OK in 70ms (Views: 54.3ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Started PATCH "/admin/articles/383" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414202612"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414202612"}}, "id"=>"382"}}, "commit"=>"Submit", "id"=>"383"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "383"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 383], ["pageable_type", "Article"]] SQL (1.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00], ["page_id", 382], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 382]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 382]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 382], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 382]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.7ms) Rendered admin/articles/edit.html.haml within layouts/application (23.5ms) Completed 200 OK in 35ms (Views: 23.0ms | ActiveRecord: 4.5ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/384/edit" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"384"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "384"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 384], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00], ["pageable_id", 384], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 383]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 383]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 383], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 383]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.1ms) Rendered admin/articles/edit.html.haml within layouts/application (9.7ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 3.0ms) Started GET "/redditor/admin/pages/383/text_blocks/new?content_block%5Btemp_id%5D=1379414202929" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414202929"}, "page_id"=>"383"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "383"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 384]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 384], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.6ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/383/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414202929" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414202929"}, "page_id"=>"383"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "383"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00], ["page_id", 383], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:36:42 UTC +00:00]]  (0.8ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 384]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 384], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.8ms) Started GET "/admin/articles/384/edit" for 127.0.0.1 at 2013-09-17 14:36:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"384"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "384"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 384], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 383]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 383]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 383], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 383]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.3ms) Rendered admin/articles/edit.html.haml within layouts/application (12.1ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.6ms)  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 384], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 384 [["pageable_type", "Article"], ["pageable_id", 385], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 384]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 384]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 384], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 384]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 385], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (258.8ms) Completed 200 OK in 270ms (Views: 265.1ms | ActiveRecord: 2.2ms)  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 1"], ["imageable_id", 221], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 2"], ["imageable_id", 221], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 3"], ["imageable_id", 221], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 385 [["pageable_type", "Article"], ["pageable_id", 386], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 385]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 385]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 385], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 385]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 221], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["height", 480], ["page_id", 386], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 386 [["pageable_type", "Article"], ["pageable_id", 387], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 386]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 386]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 386], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 386]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 387], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 4"], ["imageable_id", 222], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 5"], ["imageable_id", 222], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 6"], ["imageable_id", 222], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 387], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["height", 480], ["page_id", 387], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 387 [["pageable_type", "Article"], ["pageable_id", 388], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 387]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 387]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 387], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 387]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 388], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 7"], ["imageable_id", 223], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 8"], ["imageable_id", 223], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 9"], ["imageable_id", 223], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 388], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["height", 480], ["page_id", 388], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 388 [["pageable_type", "Article"], ["pageable_id", 389], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 388]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 388]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 388], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 388]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 223], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (32.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.3ms) Rendered articles/show.html.haml (45.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 389], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 10"], ["imageable_id", 224], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 11"], ["imageable_id", 224], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 12"], ["imageable_id", 224], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 389], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["height", 480], ["page_id", 389], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 389 [["pageable_type", "Article"], ["pageable_id", 390], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 389]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 389]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 389], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 389]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 224], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["page_id", 390], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00], ["description", "image name 13"], ["imageable_id", 225], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:43 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["description", "image name 14"], ["imageable_id", 225], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["description", "image name 15"], ["imageable_id", 225], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["page_id", 390], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["height", 480], ["page_id", 390], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 390 [["pageable_type", "Article"], ["pageable_id", 391], ["updated_at", Tue, 17 Sep 2013 10:36:44 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 390]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 390]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 390], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 390]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 225], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00], ["page_id", 391], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00], ["description", "image name 1"], ["imageable_id", 226], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00], ["description", "image name 2"], ["imageable_id", 226], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 3"], ["imageable_id", 226], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 391], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["height", 480], ["page_id", 391], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 391 [["pageable_type", "Article"], ["pageable_id", 392], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 391]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 391]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 391], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 391]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 226], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (31.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.2ms) Rendered articles/show.html.haml (62.4ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 392], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 4"], ["imageable_id", 227], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 5"], ["imageable_id", 227], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 6"], ["imageable_id", 227], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 392], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["height", 480], ["page_id", 392], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 392 [["pageable_type", "Article"], ["pageable_id", 393], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 392]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 392]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 392], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 392]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 227], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 393], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 7"], ["imageable_id", 228], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 8"], ["imageable_id", 228], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 9"], ["imageable_id", 228], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 393], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["height", 480], ["page_id", 393], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 393 [["pageable_type", "Article"], ["pageable_id", 394], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 393]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 393]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 393], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 393]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 228], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 394], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 10"], ["imageable_id", 229], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 11"], ["imageable_id", 229], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 12"], ["imageable_id", 229], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 394], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["height", 480], ["page_id", 394], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 394 [["pageable_type", "Article"], ["pageable_id", 395], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 394]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 394]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 394], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 394]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["height", 480], ["page_id", 395], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 395 [["pageable_type", "Article"], ["pageable_id", 396], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 395]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 395]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 395], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 395]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 396], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 13"], ["imageable_id", 230], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 14"], ["imageable_id", 230], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["description", "image name 15"], ["imageable_id", 230], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 396 [["pageable_type", "Article"], ["pageable_id", 397], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 396]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 396]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 396], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 396]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 230], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["page_id", 397], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 397 [["pageable_type", "Article"], ["pageable_id", 398], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 397]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 397]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 397], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 397]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:34 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/399/edit" for 127.0.0.1 at 2013-09-17 14:41:36 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"399"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "399"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 399], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:36 UTC +00:00], ["pageable_id", 399], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:41:36 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 398]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 398]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 398], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 398]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.7ms) Completed 200 OK in 1665ms (Views: 1653.4ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Started GET "/redditor/admin/pages/398/text_blocks/new?content_block%5Btemp_id%5D=1379414498398" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414498398"}, "page_id"=>"398"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "398"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 399]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 399], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.9ms) Completed 200 OK in 64ms (Views: 59.3ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Started POST "/redditor/admin/pages/398/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414498398" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414498398"}, "page_id"=>"398"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "398"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["page_id", 398], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (1.4ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 399]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 399], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Started GET "/admin/articles/399/edit" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"399"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "399"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 399], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 398]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 398]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 398], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 398]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (27.6ms) Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.7ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/400/edit" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"400"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "400"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 400], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["pageable_id", 400], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 399]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 399]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 399], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 399]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 2.2ms) Completed 200 OK in 178ms (Views: 171.3ms | ActiveRecord: 2.4ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/401/edit" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"401"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "401"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 401], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["pageable_id", 401], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 400]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 400]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 400], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 400]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Completed 200 OK in 15ms (Views: 7.7ms | ActiveRecord: 3.1ms) Started GET "/redditor/admin/pages/400/text_blocks/new?content_block%5Btemp_id%5D=1379414498835" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414498835"}, "page_id"=>"400"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "400"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 401]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 401], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.4ms) Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/401" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414498835"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379414498835"}}, "id"=>"400"}}, "commit"=>"Submit", "id"=>"401"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "401"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 401], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 400]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 400]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 400], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 400]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.2ms) Completed 200 OK in 25ms (Views: 15.5ms | ActiveRecord: 0.8ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/402/edit" for 127.0.0.1 at 2013-09-17 14:41:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"402"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "402"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 402], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00], ["pageable_id", 402], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:41:38 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 401]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 401]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 401], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 401]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/401/text_blocks/new?content_block%5Btemp_id%5D=1379414499028" for 127.0.0.1 at 2013-09-17 14:41:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414499028"}, "page_id"=>"401"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "401"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 402]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 402], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.4ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/402" for 127.0.0.1 at 2013-09-17 14:41:39 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414499028"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414499028"}}, "id"=>"401"}}, "commit"=>"Submit", "id"=>"402"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "402"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 402], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:41:39 UTC +00:00], ["page_id", 401], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:41:39 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 401]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 401]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 401], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 401]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.4ms) Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 3.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["height", 480], ["page_id", 402], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 402 [["pageable_type", "Article"], ["pageable_id", 403], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 402]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 402]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 402], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 402]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["page_id", 403], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 403 [["pageable_type", "Article"], ["pageable_id", 404], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 403]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 403]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 403], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 403]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["page_id", 404], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 1"], ["imageable_id", 231], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 2"], ["imageable_id", 231], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 231], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 404 [["pageable_type", "Article"], ["pageable_id", 405], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 404]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 404]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 404], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 404]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 231], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["page_id", 405], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 4"], ["imageable_id", 232], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 5"], ["imageable_id", 232], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["description", "image name 6"], ["imageable_id", 232], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["page_id", 405], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["height", 480], ["page_id", 405], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 405 [["pageable_type", "Article"], ["pageable_id", 406], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 405]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 405]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 405], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 405]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/407/edit" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"407"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "407"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 407], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:27 UTC +00:00], ["pageable_id", 407], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:43:27 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 406]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 406]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 406], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 406]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.6ms) Rendered admin/articles/edit.html.haml within layouts/application (40.3ms) Completed 200 OK in 69ms (Views: 58.3ms | ActiveRecord: 4.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 407], ["pageable_type", "Article"]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Started GET "/admin/articles/407/edit" for 127.0.0.1 at 2013-09-17 14:43:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"407"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "407"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 407], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 406]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 406]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 406], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 406]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 2.1ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:29 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:29 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/408/edit" for 127.0.0.1 at 2013-09-17 14:43:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"408"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "408"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 408], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:29 UTC +00:00], ["pageable_id", 408], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:43:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 407]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 407]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 407], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 407]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.6ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 3.3ms) Started GET "/redditor/admin/pages/407/text_blocks/new?content_block%5Btemp_id%5D=1379414610028" for 127.0.0.1 at 2013-09-17 14:43:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414610028"}, "page_id"=>"407"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "407"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 408]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 408], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (36.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (41.6ms) Completed 200 OK in 50ms (Views: 47.0ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:43:30 +0400 Started PATCH "/admin/articles/408" for 127.0.0.1 at 2013-09-17 14:43:30 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414610028"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414610028"}}, "id"=>"407"}}, "commit"=>"Submit", "id"=>"408"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "408"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 408], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00], ["page_id", 407], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 407]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 407]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 407], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 407]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.3ms) Rendered admin/articles/edit.html.haml within layouts/application (23.1ms) Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 1.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/409/edit" for 127.0.0.1 at 2013-09-17 14:43:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"409"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "409"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 409], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00], ["pageable_id", 409], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:43:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 408]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 408]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 408], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 408]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/408/text_blocks/new?content_block%5Btemp_id%5D=1379414610323" for 127.0.0.1 at 2013-09-17 14:43:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414610323"}, "page_id"=>"408"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "408"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 409]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 409], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.2ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/410/edit" for 127.0.0.1 at 2013-09-17 14:43:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"410"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "410"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 410], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["pageable_id", 410], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 409]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 409]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 409], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 409]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.7ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/409/text_blocks/new?content_block%5Btemp_id%5D=1379414612497" for 127.0.0.1 at 2013-09-17 14:43:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414612497"}, "page_id"=>"409"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "409"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 410]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 410], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.7ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/409/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414612497" for 127.0.0.1 at 2013-09-17 14:43:32 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414612497"}, "page_id"=>"409"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "409"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["page_id", 409], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.7ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 410]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 410], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.5ms) Started GET "/admin/articles/410/edit" for 127.0.0.1 at 2013-09-17 14:43:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"410"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "410"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 410], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 409]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 409]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 409], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 409]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.9ms) Rendered admin/articles/edit.html.haml within layouts/application (18.1ms) Completed 200 OK in 24ms (Views: 18.8ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["page_id", 410], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.6ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (148.7ms) Completed 200 OK in 160ms (Views: 154.9ms | ActiveRecord: 1.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["description", "image name 7"], ["imageable_id", 233], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["description", "image name 8"], ["imageable_id", 233], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["description", "image name 9"], ["imageable_id", 233], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["page_id", 410], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["height", 480], ["page_id", 410], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 410 [["pageable_type", "Article"], ["pageable_id", 411], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 410]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 410]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 410], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 410]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 233], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (33.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.1ms) Rendered articles/show.html.haml (48.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00], ["page_id", 411], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 10"], ["imageable_id", 234], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 11"], ["imageable_id", 234], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 12"], ["imageable_id", 234], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["page_id", 411], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["height", 480], ["page_id", 411], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 411 [["pageable_type", "Article"], ["pageable_id", 412], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 411]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 411]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 411], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 411]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 234], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["page_id", 412], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 13"], ["imageable_id", 235], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 14"], ["imageable_id", 235], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["description", "image name 15"], ["imageable_id", 235], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["page_id", 412], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["height", 480], ["page_id", 412], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 412 [["pageable_type", "Article"], ["pageable_id", 413], ["updated_at", Tue, 17 Sep 2013 10:43:33 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 412]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 412]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 412], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 412]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 235], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:46 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:46 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/414/edit" for 127.0.0.1 at 2013-09-17 14:45:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"414"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "414"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 414], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:47 UTC +00:00], ["pageable_id", 414], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 413]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 413]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 413], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 413]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (35.1ms) Rendered admin/articles/edit.html.haml within layouts/application (63.3ms) Completed 200 OK in 111ms (Views: 77.2ms | ActiveRecord: 4.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Started GET "/redditor/admin/pages/413/text_blocks/new?content_block%5Btemp_id%5D=1379414748121" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414748121"}, "page_id"=>"413"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "413"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 414]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 414], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.5ms) Completed 200 OK in 75ms (Views: 58.1ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Started PATCH "/admin/articles/414" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414748121"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414748121"}}, "id"=>"413"}}, "commit"=>"Submit", "id"=>"414"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "414"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 414], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["page_id", 413], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 413]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 413]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 413], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 413]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.4ms) Rendered admin/articles/edit.html.haml within layouts/application (23.6ms) Completed 200 OK in 35ms (Views: 23.3ms | ActiveRecord: 4.3ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/415/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"415"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "415"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 415], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["pageable_id", 415], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 414]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 414]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 414], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 414]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/414/text_blocks/new?content_block%5Btemp_id%5D=1379414748445" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414748445"}, "page_id"=>"414"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "414"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 415]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 415], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.5ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.8ms) Started POST "/redditor/admin/pages/414/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414748445" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414748445"}, "page_id"=>"414"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "414"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["page_id", 414], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.7ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 415]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 415], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.5ms) Started GET "/admin/articles/415/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"415"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "415"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 415], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.7ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 414]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 414]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 414], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 414]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.7ms) Rendered admin/articles/edit.html.haml within layouts/application (17.5ms) Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 2.2ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/416/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"416"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "416"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 416], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["pageable_id", 416], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 415]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 415]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 415], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 415]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.6ms) Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (133.4ms) Completed 200 OK in 144ms (Views: 139.7ms | ActiveRecord: 1.6ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 416], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["page_id", 415], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/416/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"416"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "416"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 416], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 415]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 415]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 415], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 415]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.1ms) Rendered admin/articles/edit.html.haml within layouts/application (13.4ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/415/text_blocks/253" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"415", "id"=>"253"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "415"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 415], ["id", "253"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 253]]  (0.9ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/416/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"416"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "416"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 416], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 415]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 415]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 415], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 415]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/417/edit" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"417"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "417"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 417], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00], ["pageable_id", 417], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:48 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 416]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 416]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 416], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 416]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/416/text_blocks/new?content_block%5Btemp_id%5D=1379414748931" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414748931"}, "page_id"=>"416"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "416"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 417]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 417], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.7ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/417" for 127.0.0.1 at 2013-09-17 14:45:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414748931"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379414748931"}}, "id"=>"416"}}, "commit"=>"Submit", "id"=>"417"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "417"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 417], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 416]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 416]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 416], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 416]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.1ms) Rendered admin/articles/edit.html.haml within layouts/application (12.3ms) Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 0.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 417], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 1"], ["imageable_id", 236], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 2"], ["imageable_id", 236], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 3"], ["imageable_id", 236], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 417], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["height", 480], ["page_id", 417], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 417 [["pageable_type", "Article"], ["pageable_id", 418], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 417]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 417]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 417], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 417]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 236], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (36.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.9ms) Rendered articles/show.html.haml (49.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 418], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 4"], ["imageable_id", 237], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 5"], ["imageable_id", 237], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 6"], ["imageable_id", 237], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 418], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["height", 480], ["page_id", 418], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 418 [["pageable_type", "Article"], ["pageable_id", 419], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 418]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 418]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 418], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 418]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 237], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 419], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 7"], ["imageable_id", 238], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 8"], ["imageable_id", 238], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 9"], ["imageable_id", 238], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 419], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["height", 480], ["page_id", 419], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 419 [["pageable_type", "Article"], ["pageable_id", 420], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 419]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 419]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 419], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 419]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 238], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 420], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 420 [["pageable_type", "Article"], ["pageable_id", 421], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 420]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 420]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 420], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 420]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 421], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 10"], ["imageable_id", 239], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 11"], ["imageable_id", 239], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 12"], ["imageable_id", 239], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 421], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["height", 480], ["page_id", 421], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 421 [["pageable_type", "Article"], ["pageable_id", 422], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 421]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 421]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 421], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 421]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["height", 480], ["page_id", 422], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 422 [["pageable_type", "Article"], ["pageable_id", 423], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 422]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 422]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 422], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 422]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["page_id", 423], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 13"], ["imageable_id", 240], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 14"], ["imageable_id", 240], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["description", "image name 15"], ["imageable_id", 240], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 423 [["pageable_type", "Article"], ["pageable_id", 424], ["updated_at", Tue, 17 Sep 2013 10:45:49 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 423]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 423]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 423], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 423]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 240], ["imageable_type", "Redditor::SliderBlock"]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["height", 480], ["page_id", 424], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (3.3ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 424 [["pageable_type", "Article"], ["pageable_id", 425], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 424]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 424]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 424], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 424]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["page_id", 425], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 1"], ["imageable_id", 241], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 2"], ["imageable_id", 241], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 3"], ["imageable_id", 241], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 425 [["pageable_type", "Article"], ["pageable_id", 426], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 425]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 425]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 425], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 425]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 241], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["page_id", 426], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 426 [["pageable_type", "Article"], ["pageable_id", 427], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 426]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 426]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 426], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 426]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["page_id", 427], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 4"], ["imageable_id", 242], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 5"], ["imageable_id", 242], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["description", "image name 6"], ["imageable_id", 242], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["page_id", 427], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["height", 480], ["page_id", 427], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 427 [["pageable_type", "Article"], ["pageable_id", 428], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 427]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 427]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 427], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 427]] Article Load (4.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:57 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/429/edit" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"429"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "429"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 429], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00], ["pageable_id", 429], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 428]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 428]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 428], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 428]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.7ms) Rendered admin/articles/edit.html.haml within layouts/application (39.2ms) Completed 200 OK in 64ms (Views: 54.1ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 429], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00], ["page_id", 428], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/429/edit" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"429"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "429"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 429], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 428]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 428]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 428], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 428]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.0ms) Rendered admin/articles/edit.html.haml within layouts/application (26.9ms) Completed 200 OK in 30ms (Views: 26.4ms | ActiveRecord: 2.1ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Started DELETE "/redditor/admin/pages/428/text_blocks/261" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"428", "id"=>"261"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "428"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 428], ["id", "261"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 261]]  (1.0ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/429/edit" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"429"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "429"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 429], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 428]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 428]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 428], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 428]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.6ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/430/edit" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"430"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "430"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 430], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00], ["pageable_id", 430], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:45:59 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 429]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 429]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 429], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 429]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/429/text_blocks/new?content_block%5Btemp_id%5D=1379414759915" for 127.0.0.1 at 2013-09-17 14:45:59 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414759915"}, "page_id"=>"429"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "429"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 430]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 430], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (38.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (45.5ms) Completed 200 OK in 54ms (Views: 51.8ms | ActiveRecord: 0.5ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/431/edit" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"431"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "431"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 431], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["pageable_id", 431], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 430]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 430]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 430], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 430]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.3ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/430/text_blocks/new?content_block%5Btemp_id%5D=1379414762100" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414762100"}, "page_id"=>"430"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "430"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 431]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 431], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.2ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/431" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414762100"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414762100"}}, "id"=>"430"}}, "commit"=>"Submit", "id"=>"431"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "431"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 431], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 430], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 430]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 430]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 430], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 430]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.6ms) Rendered admin/articles/edit.html.haml within layouts/application (14.5ms) Completed 200 OK in 24ms (Views: 14.1ms | ActiveRecord: 4.6ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/432/edit" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"432"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "432"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 432], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["pageable_id", 432], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 431]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 431]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 431], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 431]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Rendered admin/articles/edit.html.haml within layouts/application (8.5ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/431/text_blocks/new?content_block%5Btemp_id%5D=1379414762354" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414762354"}, "page_id"=>"431"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "431"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 432]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 432], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.3ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/431/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414762354" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414762354"}, "page_id"=>"431"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "431"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 431], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (2.5ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 432]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 432], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.7ms) Started GET "/admin/articles/432/edit" for 127.0.0.1 at 2013-09-17 14:46:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"432"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "432"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 432], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 431]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 431]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 431], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 431]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.3ms) Rendered admin/articles/edit.html.haml within layouts/application (14.4ms) Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.8ms)  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 432], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 7"], ["imageable_id", 243], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (179.8ms) Completed 200 OK in 193ms (Views: 186.2ms | ActiveRecord: 3.4ms)  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 8"], ["imageable_id", 243], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 9"], ["imageable_id", 243], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 432], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["height", 480], ["page_id", 432], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 432 [["pageable_type", "Article"], ["pageable_id", 433], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 432]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 432]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 432], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 432]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 243], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.3ms) Rendered collection (32.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.3ms) Rendered articles/show.html.haml (44.1ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 433], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 10"], ["imageable_id", 244], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 11"], ["imageable_id", 244], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 12"], ["imageable_id", 244], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 433], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["height", 480], ["page_id", 433], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 433 [["pageable_type", "Article"], ["pageable_id", 434], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 433]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 433]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 433], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 433]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 244], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["page_id", 434], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00], ["description", "image name 13"], ["imageable_id", 245], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:02 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["description", "image name 14"], ["imageable_id", 245], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["description", "image name 15"], ["imageable_id", 245], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["page_id", 434], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["height", 480], ["page_id", 434], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 434 [["pageable_type", "Article"], ["pageable_id", 435], ["updated_at", Tue, 17 Sep 2013 10:46:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 434]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 434]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 434], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 434]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 245], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["page_id", 435], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 1"], ["imageable_id", 246], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 2"], ["imageable_id", 246], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 3"], ["imageable_id", 246], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 435 [["pageable_type", "Article"], ["pageable_id", 436], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 435]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 435]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 435], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 435]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 246], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["height", 480], ["page_id", 436], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 436 [["pageable_type", "Article"], ["pageable_id", 437], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 436]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 436]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 436], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 436]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["page_id", 437], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 437 [["pageable_type", "Article"], ["pageable_id", 438], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 437]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 437]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 437], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 437]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["page_id", 438], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 4"], ["imageable_id", 247], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 5"], ["imageable_id", 247], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["description", "image name 6"], ["imageable_id", 247], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["page_id", 438], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["height", 480], ["page_id", 438], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 438 [["pageable_type", "Article"], ["pageable_id", 439], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 438]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 438]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 438], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 438]] Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:08 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/440/edit" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"440"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "440"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 440], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:10 UTC +00:00], ["pageable_id", 440], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:10 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 439]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 439]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 439], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 439]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.3ms) Rendered admin/articles/edit.html.haml within layouts/application (39.2ms) Completed 200 OK in 64ms (Views: 53.9ms | ActiveRecord: 4.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Started GET "/redditor/admin/pages/439/text_blocks/new?content_block%5Btemp_id%5D=1379414770605" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414770605"}, "page_id"=>"439"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "439"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 440]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 440], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.5ms) Completed 200 OK in 61ms (Views: 56.8ms | ActiveRecord: 1.3ms) Started PATCH "/admin/articles/440" for 127.0.0.1 at 2013-09-17 14:46:10 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"439"}}, "commit"=>"Submit", "id"=>"440"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "440"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 440], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 439]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 439]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 439], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 439]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.0ms) Rendered admin/articles/edit.html.haml within layouts/application (9.5ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.3ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/441/edit" for 127.0.0.1 at 2013-09-17 14:46:12 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"441"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "441"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 441], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00], ["pageable_id", 441], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 440]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 440]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 440], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 440]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Rendered admin/articles/edit.html.haml within layouts/application (8.5ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 2.6ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 441], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00], ["page_id", 440], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:12 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/441/edit" for 127.0.0.1 at 2013-09-17 14:46:12 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"441"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "441"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 441], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 440]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 440]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 440], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 440]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.3ms) Rendered admin/articles/edit.html.haml within layouts/application (21.0ms) Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:46:12 +0400 Started DELETE "/redditor/admin/pages/440/text_blocks/269" for 127.0.0.1 at 2013-09-17 14:46:12 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"440", "id"=>"269"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "440"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 440], ["id", "269"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 269]]  (1.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.5ms) Started GET "/admin/articles/441/edit" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"441"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "441"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 441], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 440]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 440]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 440], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 440]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/442/edit" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"442"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "442"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 442], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["pageable_id", 442], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 441]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 441]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 441], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 441]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.3ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/441/text_blocks/new?content_block%5Btemp_id%5D=1379414773149" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414773149"}, "page_id"=>"441"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "441"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 442]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 442], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.9ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/442" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414773149"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414773149"}}, "id"=>"441"}}, "commit"=>"Submit", "id"=>"442"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "442"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 442], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 441], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 441]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 441]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 441], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 441]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Rendered admin/articles/edit.html.haml within layouts/application (12.7ms) Completed 200 OK in 21ms (Views: 13.1ms | ActiveRecord: 3.2ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/443/edit" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"443"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "443"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 443], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["pageable_id", 443], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 442]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 442]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 442], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 442]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/442/text_blocks/new?content_block%5Btemp_id%5D=1379414773393" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414773393"}, "page_id"=>"442"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "442"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 443]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 443], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.8ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/442/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414773393" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414773393"}, "page_id"=>"442"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "442"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 442], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (1.9ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 443]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 443], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.8ms) Started GET "/admin/articles/443/edit" for 127.0.0.1 at 2013-09-17 14:46:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"443"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "443"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 443], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 442]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 442]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 442], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 442]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.8ms) Rendered admin/articles/edit.html.haml within layouts/application (12.5ms) Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 443], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 7"], ["imageable_id", 248], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.6ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (185.8ms) Completed 200 OK in 199ms (Views: 192.4ms | ActiveRecord: 2.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 8"], ["imageable_id", 248], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 9"], ["imageable_id", 248], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 443], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["height", 480], ["page_id", 443], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 443 [["pageable_type", "Article"], ["pageable_id", 444], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 443]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 443]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 443], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 443]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 248], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.3ms) Rendered collection (32.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.2ms) Rendered articles/show.html.haml (44.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 444], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 10"], ["imageable_id", 249], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 11"], ["imageable_id", 249], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 12"], ["imageable_id", 249], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 444], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["height", 480], ["page_id", 444], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 444 [["pageable_type", "Article"], ["pageable_id", 445], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 444]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 444]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 444], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 444]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 249], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["page_id", 445], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00], ["description", "image name 13"], ["imageable_id", 250], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["description", "image name 14"], ["imageable_id", 250], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["description", "image name 15"], ["imageable_id", 250], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["page_id", 445], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["height", 480], ["page_id", 445], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 445 [["pageable_type", "Article"], ["pageable_id", 446], ["updated_at", Tue, 17 Sep 2013 10:46:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 445]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 445]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 445], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 445]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 250], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:17 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:17 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/447/edit" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"447"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "447"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 447], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00], ["pageable_id", 447], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 446]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 446]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 446], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 446]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.8ms) Rendered admin/articles/edit.html.haml within layouts/application (58.6ms) Completed 200 OK in 110ms (Views: 72.8ms | ActiveRecord: 6.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Started GET "/redditor/admin/pages/446/text_blocks/new?content_block%5Btemp_id%5D=1379414779577" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414779577"}, "page_id"=>"446"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "446"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 447]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 447], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.6ms) Completed 200 OK in 77ms (Views: 58.7ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Started PATCH "/admin/articles/447" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414779577"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414779577"}}, "id"=>"446"}}, "commit"=>"Submit", "id"=>"447"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "447"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 447], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00], ["page_id", 446], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 446]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 446]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 446], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 446]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.0ms) Rendered admin/articles/edit.html.haml within layouts/application (21.9ms) Completed 200 OK in 32ms (Views: 22.2ms | ActiveRecord: 2.6ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/448/edit" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"448"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "448"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 448], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00], ["pageable_id", 448], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:19 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 447]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 447]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 447], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 447]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.6ms) Rendered admin/articles/edit.html.haml within layouts/application (9.0ms) Completed 200 OK in 15ms (Views: 8.4ms | ActiveRecord: 3.5ms) Started GET "/redditor/admin/pages/447/text_blocks/new?content_block%5Btemp_id%5D=1379414779895" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414779895"}, "page_id"=>"447"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "447"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 448]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 448], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.9ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/448" for 127.0.0.1 at 2013-09-17 14:46:19 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414779895"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379414779895"}}, "id"=>"447"}}, "commit"=>"Submit", "id"=>"448"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "448"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 448], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 447]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 447]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 447], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 447]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.0ms) Rendered admin/articles/edit.html.haml within layouts/application (14.1ms) Completed 200 OK in 23ms (Views: 13.6ms | ActiveRecord: 2.1ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/449/edit" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"449"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "449"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 449], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["pageable_id", 449], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 448]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 448]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 448], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 448]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 449], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 448], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/449/edit" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"449"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "449"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 449], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 448]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 448]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 448], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 448]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Rendered admin/articles/edit.html.haml within layouts/application (12.8ms) Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/448/text_blocks/276" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"448", "id"=>"276"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "448"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 448], ["id", "276"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 276]]  (1.0ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/449/edit" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"449"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "449"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 449], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 448]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 448]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 448], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 448]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.7ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/450/edit" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"450"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "450"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 450], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["pageable_id", 450], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 449]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 449]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 449], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 449]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/449/text_blocks/new?content_block%5Btemp_id%5D=1379414780319" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414780319"}, "page_id"=>"449"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "449"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 450]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 450], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.5ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/449/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414780319" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414780319"}, "page_id"=>"449"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "449"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 449], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 450]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 450], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.7ms) Started GET "/admin/articles/450/edit" for 127.0.0.1 at 2013-09-17 14:46:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"450"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "450"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 450], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 449]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 449]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 449], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 449]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.6ms) Rendered admin/articles/edit.html.haml within layouts/application (12.2ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 450], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 450 [["pageable_type", "Article"], ["pageable_id", 451], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 450]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 450]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 450], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 450]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 451], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (183.0ms) Completed 200 OK in 196ms (Views: 189.3ms | ActiveRecord: 3.2ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 1"], ["imageable_id", 251], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 2"], ["imageable_id", 251], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 3"], ["imageable_id", 251], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 451 [["pageable_type", "Article"], ["pageable_id", 452], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 451]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 451]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 451], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 451]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 251], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["height", 480], ["page_id", 452], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 452 [["pageable_type", "Article"], ["pageable_id", 453], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 452]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 452]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 452], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 452]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 453], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 4"], ["imageable_id", 252], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 5"], ["imageable_id", 252], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["description", "image name 6"], ["imageable_id", 252], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 453], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["height", 480], ["page_id", 453], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 453 [["pageable_type", "Article"], ["pageable_id", 454], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 453]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 453]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 453], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 453]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00], ["page_id", 454], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 7"], ["imageable_id", 253], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 8"], ["imageable_id", 253], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (30.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 9"], ["imageable_id", 253], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["page_id", 454], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["height", 480], ["page_id", 454], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 454 [["pageable_type", "Article"], ["pageable_id", 455], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 454]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 454]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 454], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 454]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 253], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (33.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.8ms) Rendered articles/show.html.haml (45.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["page_id", 455], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 10"], ["imageable_id", 254], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 11"], ["imageable_id", 254], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 12"], ["imageable_id", 254], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["page_id", 455], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["height", 480], ["page_id", 455], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 455 [["pageable_type", "Article"], ["pageable_id", 456], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 455]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 455]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 455], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 455]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 254], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["page_id", 456], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 13"], ["imageable_id", 255], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 14"], ["imageable_id", 255], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["description", "image name 15"], ["imageable_id", 255], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["page_id", 456], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["height", 480], ["page_id", 456], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 456 [["pageable_type", "Article"], ["pageable_id", 457], ["updated_at", Tue, 17 Sep 2013 10:46:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 456]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 456]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 456], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 456]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 255], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00], ["page_id", 457], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00], ["description", "image name 1"], ["imageable_id", 256], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00], ["description", "image name 2"], ["imageable_id", 256], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 3"], ["imageable_id", 256], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["page_id", 457], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["height", 480], ["page_id", 457], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 457 [["pageable_type", "Article"], ["pageable_id", 458], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 457]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 457]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 457], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 457]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 256], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (28.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (51.8ms) Rendered articles/show.html.haml (60.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["page_id", 458], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 4"], ["imageable_id", 257], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 5"], ["imageable_id", 257], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 6"], ["imageable_id", 257], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["page_id", 458], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["height", 480], ["page_id", 458], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 458 [["pageable_type", "Article"], ["pageable_id", 459], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 458]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 458]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 458], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 458]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 257], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["page_id", 459], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 7"], ["imageable_id", 258], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 8"], ["imageable_id", 258], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["description", "image name 9"], ["imageable_id", 258], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["page_id", 459], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["height", 480], ["page_id", 459], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 459 [["pageable_type", "Article"], ["pageable_id", 460], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 459]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 459]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 459], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 459]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 258], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:55 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/461/edit" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"461"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "461"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 461], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["pageable_id", 461], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 460]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 460]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 460], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 460]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.6ms) Completed 200 OK in 62ms (Views: 50.3ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Started GET "/redditor/admin/pages/460/text_blocks/new?content_block%5Btemp_id%5D=1379414877434" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414877434"}, "page_id"=>"460"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "460"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 461]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 461], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (40.9ms) Completed 200 OK in 57ms (Views: 53.0ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Started POST "/redditor/admin/pages/460/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414877434" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414877434"}, "page_id"=>"460"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "460"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["page_id", 460], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (2.5ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 461]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 461], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.8ms) Started GET "/admin/articles/461/edit" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"461"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "461"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 461], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 460]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 460]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 460], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 460]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (22.0ms) Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 1.6ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/462/edit" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"462"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "462"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 462], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["pageable_id", 462], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 461]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 461]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 461], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 461]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.7ms) Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 2.0ms) Completed 200 OK in 186ms (Views: 178.0ms | ActiveRecord: 4.4ms) Started GET "/redditor/admin/pages/461/text_blocks/new?content_block%5Btemp_id%5D=1379414877793" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414877793"}, "page_id"=>"461"} Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "461"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 462]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 462], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.0ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/462" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414877793"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379414877793"}}, "id"=>"461"}}, "commit"=>"Submit", "id"=>"462"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "462"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 462], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 461]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 461]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 461], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 461]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.6ms) Completed 200 OK in 24ms (Views: 14.2ms | ActiveRecord: 0.8ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/463/edit" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"463"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "463"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 463], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00], ["pageable_id", 463], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:47:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 462]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 462]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 462], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 462]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/462/text_blocks/new?content_block%5Btemp_id%5D=1379414877984" for 127.0.0.1 at 2013-09-17 14:47:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414877984"}, "page_id"=>"462"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "462"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 463]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 463], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/463" for 127.0.0.1 at 2013-09-17 14:47:58 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414877984"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414877984"}}, "id"=>"462"}}, "commit"=>"Submit", "id"=>"463"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "463"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 463], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 462], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 462]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 462]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 462], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 462]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.4ms) Completed 200 OK in 23ms (Views: 13.6ms | ActiveRecord: 3.7ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/464/edit" for 127.0.0.1 at 2013-09-17 14:47:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"464"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "464"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 464], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["pageable_id", 464], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 463]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 463]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 463], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 463]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 464], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 463], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/464/edit" for 127.0.0.1 at 2013-09-17 14:47:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"464"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "464"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 464], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 463]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 463]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 463], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 463]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (30.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (35.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (40.5ms) Completed 200 OK in 46ms (Views: 43.8ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/463/text_blocks/288" for 127.0.0.1 at 2013-09-17 14:47:58 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"463", "id"=>"288"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "463"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 463], ["id", "288"]]  (0.2ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 288]]  (2.6ms) commit transaction Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 3.6ms) Started GET "/admin/articles/464/edit" for 127.0.0.1 at 2013-09-17 14:47:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"464"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "464"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 464], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 463]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 463]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 463], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 463]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (1.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 464], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 10"], ["imageable_id", 259], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 11"], ["imageable_id", 259], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 12"], ["imageable_id", 259], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 464], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["height", 480], ["page_id", 464], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 464 [["pageable_type", "Article"], ["pageable_id", 465], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 464]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 464]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 464], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 464]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 465], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 13"], ["imageable_id", 260], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 14"], ["imageable_id", 260], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["description", "image name 15"], ["imageable_id", 260], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 465 [["pageable_type", "Article"], ["pageable_id", 466], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 465]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 465]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 465], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 465]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 260], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["page_id", 466], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 466 [["pageable_type", "Article"], ["pageable_id", 467], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 466]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 466]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 466], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 466]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["height", 480], ["page_id", 467], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 467 [["pageable_type", "Article"], ["pageable_id", 468], ["updated_at", Tue, 17 Sep 2013 10:47:58 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 467]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 467]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 467], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 467]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["height", 480], ["page_id", 468], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 468 [["pageable_type", "Article"], ["pageable_id", 469], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 468]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 468]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 468], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 468]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["page_id", 469], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 469 [["pageable_type", "Article"], ["pageable_id", 470], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 469]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 469]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 469], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 469]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["page_id", 470], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 1"], ["imageable_id", 261], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 2"], ["imageable_id", 261], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 3"], ["imageable_id", 261], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["page_id", 470], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction  (0.5ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["height", 480], ["page_id", 470], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 470 [["pageable_type", "Article"], ["pageable_id", 471], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 470]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 470]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 470], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 470]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["page_id", 471], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 4"], ["imageable_id", 262], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 5"], ["imageable_id", 262], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["description", "image name 6"], ["imageable_id", 262], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 471 [["pageable_type", "Article"], ["pageable_id", 472], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 471]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 471]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 471], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 471]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 262], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:13 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/473/edit" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"473"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "473"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 473], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:15 UTC +00:00], ["pageable_id", 473], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:49:15 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 472]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 472]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 472], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 472]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.8ms) Rendered admin/articles/edit.html.haml within layouts/application (39.3ms) Completed 200 OK in 68ms (Views: 56.0ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 473], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:49:15 UTC +00:00], ["page_id", 472], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:15 UTC +00:00]]  (2.4ms) commit transaction Started GET "/admin/articles/473/edit" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"473"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "473"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 473], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 472]] Redditor::VideoBlock Load (0.5ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 472]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 472], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 472]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.5ms) Rendered admin/articles/edit.html.haml within layouts/application (28.2ms) Completed 200 OK in 32ms (Views: 27.5ms | ActiveRecord: 2.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Started DELETE "/redditor/admin/pages/472/text_blocks/293" for 127.0.0.1 at 2013-09-17 14:49:15 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"472", "id"=>"293"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "472"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 472], ["id", "293"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 293]]  (2.9ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.5ms) Started GET "/admin/articles/473/edit" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"473"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "473"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 473], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 472]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 472]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 472], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 472]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.2ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/474/edit" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"474"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "474"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 474], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["pageable_id", 474], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 473]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 473]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 473], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 473]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.2ms) Rendered admin/articles/edit.html.haml within layouts/application (6.5ms) Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/473/text_blocks/new?content_block%5Btemp_id%5D=1379414956157" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414956157"}, "page_id"=>"473"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "473"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 474]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 474], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (40.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.3ms) Completed 200 OK in 58ms (Views: 55.6ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/474" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414956157"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414956157"}}, "id"=>"473"}}, "commit"=>"Submit", "id"=>"474"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "474"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 474], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["page_id", 473], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 473]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 473]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 473], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 473]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.1ms) Rendered admin/articles/edit.html.haml within layouts/application (16.2ms) Completed 200 OK in 25ms (Views: 16.6ms | ActiveRecord: 3.7ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/475/edit" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"475"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "475"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 475], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["pageable_id", 475], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 474]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 474]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 474], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 474]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.5ms) Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/474/text_blocks/new?content_block%5Btemp_id%5D=1379414956445" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414956445"}, "page_id"=>"474"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "474"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 475]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 475], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.7ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/474/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379414956445" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379414956445"}, "page_id"=>"474"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "474"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["page_id", 474], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (2.5ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 475]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 475], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Started GET "/admin/articles/475/edit" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"475"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "475"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 475], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 474]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 474]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 474], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 474]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.6ms) Rendered admin/articles/edit.html.haml within layouts/application (13.5ms) Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.6ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/476/edit" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"476"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "476"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 476], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["pageable_id", 476], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 475]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 475]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 475], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 475]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (154.3ms) Completed 200 OK in 167ms (Views: 160.6ms | ActiveRecord: 3.4ms) Started GET "/redditor/admin/pages/475/text_blocks/new?content_block%5Btemp_id%5D=1379414956672" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379414956672"}, "page_id"=>"475"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "475"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 476]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 476], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.8ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/476" for 127.0.0.1 at 2013-09-17 14:49:16 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379414956672"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379414956672"}}, "id"=>"475"}}, "commit"=>"Submit", "id"=>"476"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "476"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 476], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 475]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 475]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 475], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 475]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.6ms) Rendered admin/articles/edit.html.haml within layouts/application (12.7ms) Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["page_id", 476], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["description", "image name 7"], ["imageable_id", 263], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["description", "image name 8"], ["imageable_id", 263], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["description", "image name 9"], ["imageable_id", 263], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["page_id", 476], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["height", 480], ["page_id", 476], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 476 [["pageable_type", "Article"], ["pageable_id", 477], ["updated_at", Tue, 17 Sep 2013 10:49:16 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 476]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 476]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 476], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 476]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 263], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.8ms) Rendered collection (33.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (66.8ms) Rendered articles/show.html.haml (74.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["page_id", 477], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 10"], ["imageable_id", 264], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 11"], ["imageable_id", 264], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 12"], ["imageable_id", 264], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["page_id", 477], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["height", 480], ["page_id", 477], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 477 [["pageable_type", "Article"], ["pageable_id", 478], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 477]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 477]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 477], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 477]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 264], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["page_id", 478], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 13"], ["imageable_id", 265], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 14"], ["imageable_id", 265], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["description", "image name 15"], ["imageable_id", 265], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["page_id", 478], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["height", 480], ["page_id", 478], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 478 [["pageable_type", "Article"], ["pageable_id", 479], ["updated_at", Tue, 17 Sep 2013 10:49:17 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 478]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 478]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 478], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 478]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 265], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["page_id", 479], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["description", "image name 1"], ["imageable_id", 266], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["description", "image name 2"], ["imageable_id", 266], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["description", "image name 3"], ["imageable_id", 266], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["page_id", 479], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["height", 480], ["page_id", 479], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 479 [["pageable_type", "Article"], ["pageable_id", 480], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 479]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 479]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 479], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 479]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 266], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (29.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (51.5ms) Rendered articles/show.html.haml (59.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["page_id", 480], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["description", "image name 4"], ["imageable_id", 267], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00], ["description", "image name 5"], ["imageable_id", 267], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 6"], ["imageable_id", 267], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 480], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["height", 480], ["page_id", 480], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 480 [["pageable_type", "Article"], ["pageable_id", 481], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 480]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 480]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 480], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 480]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 267], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 481], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 7"], ["imageable_id", 268], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 8"], ["imageable_id", 268], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 9"], ["imageable_id", 268], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 481], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["height", 480], ["page_id", 481], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 481 [["pageable_type", "Article"], ["pageable_id", 482], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 481]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 481]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 481], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 481]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 268], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 482], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 10"], ["imageable_id", 269], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 11"], ["imageable_id", 269], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 12"], ["imageable_id", 269], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 482], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["height", 480], ["page_id", 482], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 482 [["pageable_type", "Article"], ["pageable_id", 483], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 482]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 482]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 482], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 482]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["height", 480], ["page_id", 483], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 483 [["pageable_type", "Article"], ["pageable_id", 484], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 483]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 483]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 483], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 483]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 484], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 13"], ["imageable_id", 270], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 14"], ["imageable_id", 270], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["description", "image name 15"], ["imageable_id", 270], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 484 [["pageable_type", "Article"], ["pageable_id", 485], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 484]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 484]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 484], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 484]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 270], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["page_id", 485], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 485 [["pageable_type", "Article"], ["pageable_id", 486], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 485]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 485]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 485], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 485]] Article Load (0.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:15 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/487/edit" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"487"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "487"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 487], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00], ["pageable_id", 487], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 486]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 486]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 486], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 486]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.1ms) Completed 200 OK in 57ms (Views: 45.6ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Started GET "/redditor/admin/pages/486/text_blocks/new?content_block%5Btemp_id%5D=1379415077678" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415077678"}, "page_id"=>"486"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "486"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 487]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 487], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (40.3ms) Completed 200 OK in 56ms (Views: 52.3ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Started POST "/redditor/admin/pages/486/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379415077678" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415077678"}, "page_id"=>"486"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "486"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00], ["page_id", 486], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 487]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 487], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.9ms) Started GET "/admin/articles/487/edit" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"487"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "487"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 487], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 486]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 486]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 486], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 486]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.6ms) Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.6ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/488/edit" for 127.0.0.1 at 2013-09-17 14:51:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"488"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "488"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 488], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00], ["pageable_id", 488], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:51:17 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 487]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 487]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 487], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 487]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 2.1ms) Completed 200 OK in 180ms (Views: 173.1ms | ActiveRecord: 3.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 488], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["page_id", 487], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (1.6ms) commit transaction Started GET "/admin/articles/488/edit" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"488"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "488"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 488], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 487]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 487]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 487], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 487]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.3ms) Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/487/text_blocks/305" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"487", "id"=>"305"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "487"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 487], ["id", "305"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 305]]  (0.9ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/488/edit" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"488"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "488"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 488], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 487]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 487]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 487], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 487]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.6ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/489/edit" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"489"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "489"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 489], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["pageable_id", 489], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 488]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 488]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 488], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 488]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/488/text_blocks/new?content_block%5Btemp_id%5D=1379415078290" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415078290"}, "page_id"=>"488"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "488"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 489]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 489], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.4ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/489" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415078290"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379415078290"}}, "id"=>"488"}}, "commit"=>"Submit", "id"=>"489"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "489"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 489], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 488]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 488]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 488], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 488]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Completed 200 OK in 21ms (Views: 13.6ms | ActiveRecord: 0.7ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/490/edit" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"490"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "490"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 490], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["pageable_id", 490], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 489]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 489]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 489], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 489]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/489/text_blocks/new?content_block%5Btemp_id%5D=1379415078481" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415078481"}, "page_id"=>"489"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "489"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 490]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 490], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.0ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/490" for 127.0.0.1 at 2013-09-17 14:51:18 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415078481"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415078481"}}, "id"=>"489"}}, "commit"=>"Submit", "id"=>"490"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "490"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 490], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00], ["page_id", 489], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:51:18 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 489]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 489]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 489], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 489]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Completed 200 OK in 21ms (Views: 13.4ms | ActiveRecord: 3.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 490], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 1"], ["imageable_id", 271], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 2"], ["imageable_id", 271], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 271], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 490], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["height", 480], ["page_id", 490], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 490 [["pageable_type", "Article"], ["pageable_id", 491], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 490]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 490]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 490], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 490]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 271], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (32.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (54.4ms) Rendered articles/show.html.haml (64.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 491], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 4"], ["imageable_id", 272], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 5"], ["imageable_id", 272], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 6"], ["imageable_id", 272], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 491], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["height", 480], ["page_id", 491], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 491 [["pageable_type", "Article"], ["pageable_id", 492], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 491]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 491]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 491], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 491]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 272], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.6ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 492], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 7"], ["imageable_id", 273], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 8"], ["imageable_id", 273], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 9"], ["imageable_id", 273], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 492], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["height", 480], ["page_id", 492], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 492 [["pageable_type", "Article"], ["pageable_id", 493], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 492]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 492]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 492], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 492]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 273], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["page_id", 493], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 10"], ["imageable_id", 274], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 274], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["description", "image name 12"], ["imageable_id", 274], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 493 [["pageable_type", "Article"], ["pageable_id", 494], ["updated_at", Tue, 17 Sep 2013 10:52:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 493]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 493]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 493], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 493]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 274], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["page_id", 494], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["description", "image name 13"], ["imageable_id", 275], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["description", "image name 14"], ["imageable_id", 275], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["description", "image name 15"], ["imageable_id", 275], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["page_id", 494], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["height", 480], ["page_id", 494], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 494 [["pageable_type", "Article"], ["pageable_id", 495], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 494]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 494]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 494], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 494]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["height", 480], ["page_id", 495], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 495 [["pageable_type", "Article"], ["pageable_id", 496], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 495]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 495]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 495], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 495]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["page_id", 496], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 496 [["pageable_type", "Article"], ["pageable_id", 497], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 496]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 496]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 496], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 496]] Article Load (0.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:26 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/498/edit" for 127.0.0.1 at 2013-09-17 14:52:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"498"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "498"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 498], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:27 UTC +00:00], ["pageable_id", 498], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:52:27 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 497]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 497]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 497], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 497]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.7ms) Completed 200 OK in 57ms (Views: 46.2ms | ActiveRecord: 5.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Started GET "/redditor/admin/pages/497/text_blocks/new?content_block%5Btemp_id%5D=1379415148116" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415148116"}, "page_id"=>"497"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "497"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 498]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 498], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (39.7ms) Completed 200 OK in 55ms (Views: 52.5ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Started PATCH "/admin/articles/498" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415148116"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379415148116"}}, "id"=>"497"}}, "commit"=>"Submit", "id"=>"498"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "498"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 498], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 497]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 497]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 497], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 497]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.8ms) Completed 200 OK in 31ms (Views: 21.5ms | ActiveRecord: 2.1ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/499/edit" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"499"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "499"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 499], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["pageable_id", 499], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 498]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 498]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 498], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 498]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Completed 200 OK in 15ms (Views: 8.2ms | ActiveRecord: 3.4ms) Started GET "/redditor/admin/pages/498/text_blocks/new?content_block%5Btemp_id%5D=1379415148419" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415148419"}, "page_id"=>"498"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "498"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 499]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 499], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (6.8ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/498/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379415148419" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415148419"}, "page_id"=>"498"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "498"]]  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["page_id", 498], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (2.4ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 499]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 499], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.4ms) Started GET "/admin/articles/499/edit" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"499"} Article Load (0.6ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "499"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 499], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 498]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 498]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 498], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 498]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.9ms) Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 1.2ms) Completed 200 OK in 148ms (Views: 140.9ms | ActiveRecord: 3.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/500/edit" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"500"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "500"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 500], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["pageable_id", 500], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 499]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 499]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 499], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 499]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 500], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00], ["page_id", 499], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:52:28 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/500/edit" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"500"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "500"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 500], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 499]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 499]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 499], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 499]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.5ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/499/text_blocks/313" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"499", "id"=>"313"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "499"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 499], ["id", "313"]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 313]]  (1.0ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.9ms) Started GET "/admin/articles/500/edit" for 127.0.0.1 at 2013-09-17 14:52:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"500"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "500"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 500], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 499]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 499]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 499], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 499]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.6ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:30 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:52:30 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/501/edit" for 127.0.0.1 at 2013-09-17 14:52:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"501"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "501"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 501], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:52:30 UTC +00:00], ["pageable_id", 501], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:52:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 500]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 500]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 500], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 500]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/500/text_blocks/new?content_block%5Btemp_id%5D=1379415150971" for 127.0.0.1 at 2013-09-17 14:52:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415150971"}, "page_id"=>"500"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "500"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 501]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 501], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.5ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/501" for 127.0.0.1 at 2013-09-17 14:52:31 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415150971"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415150971"}}, "id"=>"500"}}, "commit"=>"Submit", "id"=>"501"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "501"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 501], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:52:31 UTC +00:00], ["page_id", 500], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:52:31 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 500]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 500]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 500], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 500]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.8ms) Completed 200 OK in 23ms (Views: 14.0ms | ActiveRecord: 3.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:22 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/502/edit" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"502"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "502"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 502], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00], ["pageable_id", 502], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 501]] Redditor::VideoBlock Load (0.7ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 501]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 501], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 501]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.9ms) Rendered admin/articles/edit.html.haml within layouts/application (60.8ms) Completed 200 OK in 110ms (Views: 77.0ms | ActiveRecord: 6.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Started GET "/redditor/admin/pages/501/text_blocks/new?content_block%5Btemp_id%5D=1379415204605" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415204605"}, "page_id"=>"501"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "501"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 502]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 502], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.3ms) Completed 200 OK in 73ms (Views: 57.9ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Started PATCH "/admin/articles/502" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415204605"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415204605"}}, "id"=>"501"}}, "commit"=>"Submit", "id"=>"502"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "502"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 502], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00], ["page_id", 501], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 501]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 501]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 501], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 501]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.7ms) Rendered admin/articles/edit.html.haml within layouts/application (22.7ms) Completed 200 OK in 34ms (Views: 23.4ms | ActiveRecord: 3.7ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/503/edit" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"503"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "503"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 503], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00], ["pageable_id", 503], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 502]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 502]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 502], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 502]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 13ms (Views: 7.4ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 503], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00], ["page_id", 502], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:24 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/503/edit" for 127.0.0.1 at 2013-09-17 14:53:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"503"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "503"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 503], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 502]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 502]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 502], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 502]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.2ms) Rendered admin/articles/edit.html.haml within layouts/application (15.3ms) Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 1.9ms) Started DELETE "/redditor/admin/pages/502/text_blocks/316" for 127.0.0.1 at 2013-09-17 14:53:25 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"502", "id"=>"316"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "502"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 502], ["id", "316"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 316]]  (1.3ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.0ms) Started GET "/admin/articles/503/edit" for 127.0.0.1 at 2013-09-17 14:53:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"503"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "503"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 503], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 502]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 502]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 502], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 502]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.7ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/504/edit" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"504"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "504"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 504], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["pageable_id", 504], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 503]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 503]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 503], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 503]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/503/text_blocks/new?content_block%5Btemp_id%5D=1379415207218" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415207218"}, "page_id"=>"503"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "503"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 504]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 504], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.3ms) Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.6ms) Started POST "/redditor/admin/pages/503/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379415207218" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379415207218"}, "page_id"=>"503"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "503"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 503], ["position", 0], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (2.3ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 504]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 504], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.2ms) Started GET "/admin/articles/504/edit" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"504"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "504"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 504], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 503]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 503]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 503], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 503]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.8ms) Rendered admin/articles/edit.html.haml within layouts/application (21.4ms) Completed 200 OK in 25ms (Views: 20.8ms | ActiveRecord: 2.2ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/505/edit" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"505"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "505"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 505], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["pageable_id", 505], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 504]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 504]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 504], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 504]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (141.7ms) Completed 200 OK in 154ms (Views: 147.7ms | ActiveRecord: 3.5ms) Started GET "/redditor/admin/pages/504/text_blocks/new?content_block%5Btemp_id%5D=1379415207470" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379415207470"}, "page_id"=>"504"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "504"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 505]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 505], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.5ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/505" for 127.0.0.1 at 2013-09-17 14:53:27 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379415207470"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379415207470"}}, "id"=>"504"}}, "commit"=>"Submit", "id"=>"505"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "505"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 505], ["pageable_type", "Article"]]  (0.0ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 504]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 504]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 504], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 504]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.3ms) Rendered admin/articles/edit.html.haml within layouts/application (12.4ms) Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 505], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 505 [["pageable_type", "Article"], ["pageable_id", 506], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 505]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 505]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 505], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 505]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["height", 480], ["page_id", 506], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 506 [["pageable_type", "Article"], ["pageable_id", 507], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 506]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 506]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 506], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 506]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 507], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 1"], ["imageable_id", 276], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 2"], ["imageable_id", 276], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 3"], ["imageable_id", 276], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 507], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["height", 480], ["page_id", 507], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 507 [["pageable_type", "Article"], ["pageable_id", 508], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 507]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 507]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 507], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 507]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 508], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 4"], ["imageable_id", 277], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 5"], ["imageable_id", 277], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["description", "image name 6"], ["imageable_id", 277], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 508 [["pageable_type", "Article"], ["pageable_id", 509], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 508]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 508]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 508], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 508]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 277], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00], ["page_id", 509], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:27 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 7"], ["imageable_id", 278], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 8"], ["imageable_id", 278], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 9"], ["imageable_id", 278], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["page_id", 509], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["height", 480], ["page_id", 509], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 509 [["pageable_type", "Article"], ["pageable_id", 510], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 509]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 509]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 509], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 509]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 278], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.3ms) Rendered collection (35.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (40.1ms) Rendered articles/show.html.haml (47.5ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["page_id", 510], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 10"], ["imageable_id", 279], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 11"], ["imageable_id", 279], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 12"], ["imageable_id", 279], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["page_id", 510], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["height", 480], ["page_id", 510], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 510 [["pageable_type", "Article"], ["pageable_id", 511], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 510]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 510]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 510], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 510]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 279], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["page_id", 511], ["position", 1], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 13"], ["imageable_id", 280], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 14"], ["imageable_id", 280], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["description", "image name 15"], ["imageable_id", 280], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["page_id", 511], ["position", 2], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["height", 480], ["page_id", 511], ["position", 3], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 511 [["pageable_type", "Article"], ["pageable_id", 512], ["updated_at", Tue, 17 Sep 2013 10:53:28 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 511]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 511]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 511], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 511]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 280], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:26:28 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/513/edit" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"513"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "513"]] Redditor::Page Load (1.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 513], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (2.2ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:30 UTC +00:00], ["pageable_id", 513], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:26:30 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.5ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 512]] Redditor::VideoBlock Load (0.6ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 512]] Redditor::Image Load (0.6ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 512], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.7ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 512]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.2ms) Rendered admin/articles/edit.html.haml within layouts/application (70.1ms) Completed 200 OK in 131ms (Views: 95.3ms | ActiveRecord: 8.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Started GET "/redditor/admin/pages/512/video_blocks/new?content_block%5Btemp_id%5D=1379445990844" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379445990844"}, "page_id"=>"512"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "512"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 513]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 513], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (19.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (34.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (55.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (63.5ms) Completed 200 OK in 94ms (Views: 69.2ms | ActiveRecord: 1.5ms) Started PATCH "/admin/articles/513" for 127.0.0.1 at 2013-09-17 23:26:30 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"512"}}, "commit"=>"Submit", "id"=>"513"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "513"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 513], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 512]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 512]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 512], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 512]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.0ms) Rendered admin/articles/edit.html.haml within layouts/application (9.6ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.2ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:26:33 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/514/edit" for 127.0.0.1 at 2013-09-17 23:26:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"514"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "514"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 514], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:33 UTC +00:00], ["pageable_id", 514], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:26:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 513]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 513]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 513], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 513]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 14ms (Views: 8.1ms | ActiveRecord: 2.8ms) Started GET "/redditor/admin/pages/513/video_blocks/new?content_block%5Btemp_id%5D=1379445993156" for 127.0.0.1 at 2013-09-17 23:26:33 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379445993156"}, "page_id"=>"513"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "513"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 514]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 514], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.4ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:26:33 +0400 Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/515/edit" for 127.0.0.1 at 2013-09-17 23:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"515"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "515"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 515], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00], ["pageable_id", 515], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 514]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 514]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 514], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 514]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 515], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00], ["page_id", 514], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:26:35 UTC +00:00], ["youtube", "12312312311"]]  (0.8ms) commit transaction Started GET "/admin/articles/515/edit" for 127.0.0.1 at 2013-09-17 23:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"515"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "515"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 515], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 514]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 514]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 514], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 514]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.5ms) Rendered admin/articles/edit.html.haml within layouts/application (27.8ms) Completed 200 OK in 31ms (Views: 27.3ms | ActiveRecord: 1.7ms) Started DELETE "/redditor/admin/pages/514/video_blocks/281" for 127.0.0.1 at 2013-09-17 23:26:35 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"514", "id"=>"281"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "514"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 514], ["id", "281"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 281]]  (0.7ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/515/edit" for 127.0.0.1 at 2013-09-17 23:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"515"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "515"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 515], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 514]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 514]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 514], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 514]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (35.5ms) Rendered admin/articles/edit.html.haml within layouts/application (38.6ms) Completed 200 OK in 42ms (Views: 39.0ms | ActiveRecord: 0.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:37 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:26:37 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/516/edit" for 127.0.0.1 at 2013-09-17 23:26:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"516"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "516"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 516], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:26:37 UTC +00:00], ["pageable_id", 516], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:26:37 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 515]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 515]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 515], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 515]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/515/video_blocks/new?content_block%5Btemp_id%5D=1379445997798" for 127.0.0.1 at 2013-09-17 23:26:37 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379445997798"}, "page_id"=>"515"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "515"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 516]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 516], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.2ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:28 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:28 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/517/edit" for 127.0.0.1 at 2013-09-17 23:28:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"517"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "517"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 517], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:30 UTC +00:00], ["pageable_id", 517], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:30 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 516]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 516]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 516], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 516]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.8ms) Rendered admin/articles/edit.html.haml within layouts/application (63.8ms) Completed 200 OK in 110ms (Views: 77.7ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:28:30 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:28:30 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:28:30 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:28:30 +0400 Started GET "/redditor/admin/pages/516/video_blocks/new?content_block%5Btemp_id%5D=1379446110997" for 127.0.0.1 at 2013-09-17 23:28:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446110997"}, "page_id"=>"516"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "516"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 517]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 517], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (15.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.6ms) Completed 200 OK in 78ms (Views: 59.1ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:28:31 +0400 Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:33 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:33 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/518/edit" for 127.0.0.1 at 2013-09-17 23:28:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"518"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "518"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 518], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:33 UTC +00:00], ["pageable_id", 518], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:33 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 517]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 517]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 517], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 517]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/517/video_blocks/new?content_block%5Btemp_id%5D=1379446113151" for 127.0.0.1 at 2013-09-17 23:28:33 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446113151"}, "page_id"=>"517"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "517"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 518]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 518], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.2ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 1.2ms) Started PATCH "/admin/articles/518" for 127.0.0.1 at 2013-09-17 23:28:33 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446113151"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446113151"}}, "id"=>"517"}}, "commit"=>"Submit", "id"=>"518"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "518"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 518], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 517]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 517]] Redditor::Image Load (0.4ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 517], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 517]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (15.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.3ms) Rendered admin/articles/edit.html.haml within layouts/application (42.7ms) Completed 200 OK in 53ms (Views: 41.4ms | ActiveRecord: 3.0ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/519/edit" for 127.0.0.1 at 2013-09-17 23:28:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"519"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "519"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 519], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00], ["pageable_id", 519], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 518]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 518]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 518], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 518]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.3ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 519], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00], ["page_id", 518], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:28:35 UTC +00:00], ["youtube", "12312312311"]]  (1.0ms) commit transaction Started GET "/admin/articles/519/edit" for 127.0.0.1 at 2013-09-17 23:28:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"519"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "519"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 519], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 518]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 518]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 518], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 518]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.8ms) Rendered admin/articles/edit.html.haml within layouts/application (17.5ms) Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/518/video_blocks/282" for 127.0.0.1 at 2013-09-17 23:28:35 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"518", "id"=>"282"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "518"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 518], ["id", "282"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 282]]  (0.5ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/519/edit" for 127.0.0.1 at 2013-09-17 23:28:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"519"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "519"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 519], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 518]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 518]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 518], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 518]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (40.0ms) Rendered admin/articles/edit.html.haml within layouts/application (42.9ms) Completed 200 OK in 45ms (Views: 43.2ms | ActiveRecord: 0.7ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:37 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:37 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/520/edit" for 127.0.0.1 at 2013-09-17 23:28:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"520"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "520"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 520], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:37 UTC +00:00], ["pageable_id", 520], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 519]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 519]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 519], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 519]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 14ms (Views: 8.1ms | ActiveRecord: 2.7ms) Started GET "/redditor/admin/pages/519/video_blocks/new?content_block%5Btemp_id%5D=1379446117992" for 127.0.0.1 at 2013-09-17 23:28:37 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446117992"}, "page_id"=>"519"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "519"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 520]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 520], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.1ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:54 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/521/edit" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"521"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "521"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 521], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:56 UTC +00:00], ["pageable_id", 521], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:56 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 520]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 520]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 520], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 520]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.9ms) Rendered admin/articles/edit.html.haml within layouts/application (57.7ms) Completed 200 OK in 105ms (Views: 71.4ms | ActiveRecord: 5.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Started GET "/redditor/admin/pages/520/video_blocks/new?content_block%5Btemp_id%5D=1379446136538" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446136538"}, "page_id"=>"520"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "520"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 521]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 521], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (14.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (48.8ms) Completed 200 OK in 74ms (Views: 53.8ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:28:56 +0400 Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/522/edit" for 127.0.0.1 at 2013-09-17 23:28:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"522"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "522"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 522], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00], ["pageable_id", 522], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 521]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 521]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 521], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 521]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.4ms) Rendered admin/articles/edit.html.haml within layouts/application (11.9ms) Completed 200 OK in 20ms (Views: 11.4ms | ActiveRecord: 3.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 522], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00], ["page_id", 521], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:28:58 UTC +00:00], ["youtube", "12312312311"]]  (1.2ms) commit transaction Started GET "/admin/articles/522/edit" for 127.0.0.1 at 2013-09-17 23:28:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"522"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "522"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 522], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 521]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 521]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 521], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 521]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.9ms) Rendered admin/articles/edit.html.haml within layouts/application (27.5ms) Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.8ms) Started DELETE "/redditor/admin/pages/521/video_blocks/283" for 127.0.0.1 at 2013-09-17 23:28:58 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"521", "id"=>"283"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "521"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 521], ["id", "283"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 283]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/522/edit" for 127.0.0.1 at 2013-09-17 23:28:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"522"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "522"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 522], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 521]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 521]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 521], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 521]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.7ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/523/edit" for 127.0.0.1 at 2013-09-17 23:29:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"523"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "523"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 523], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00], ["pageable_id", 523], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 522]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 522]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 522], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 522]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.9ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/522/video_blocks/new?content_block%5Btemp_id%5D=1379446141160" for 127.0.0.1 at 2013-09-17 23:29:01 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446141160"}, "page_id"=>"522"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "522"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 523]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 523], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.4ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/523" for 127.0.0.1 at 2013-09-17 23:29:01 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446141160"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446141160"}}, "id"=>"522"}}, "commit"=>"Submit", "id"=>"523"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "523"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 523], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 522]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 522]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 522], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 522]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.0ms) Rendered admin/articles/edit.html.haml within layouts/application (19.1ms) Completed 200 OK in 27ms (Views: 18.7ms | ActiveRecord: 1.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/524/edit" for 127.0.0.1 at 2013-09-17 23:29:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"524"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "524"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 524], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00], ["pageable_id", 524], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 523]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 523]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 523], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 523]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/523/video_blocks/new?content_block%5Btemp_id%5D=1379446141391" for 127.0.0.1 at 2013-09-17 23:29:01 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446141391"}, "page_id"=>"523"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "523"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 524]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 524], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (12.1ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:26 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:26 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/525/edit" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"525"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "525"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 525], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:28 UTC +00:00], ["pageable_id", 525], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:28 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 524]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 524]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 524], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 524]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.4ms) Rendered admin/articles/edit.html.haml within layouts/application (55.7ms) Completed 200 OK in 100ms (Views: 69.1ms | ActiveRecord: 4.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Started GET "/redditor/admin/pages/524/video_blocks/new?content_block%5Btemp_id%5D=1379446168935" for 127.0.0.1 at 2013-09-17 23:29:28 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446168935"}, "page_id"=>"524"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "524"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 525]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 525], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (15.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (53.0ms) Completed 200 OK in 79ms (Views: 58.6ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Started POST "/redditor/admin/pages/524/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379446168935" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446168935"}, "page_id"=>"524"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "524"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["page_id", 524], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["youtube", "11111111111"]]  (1.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 525]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 525], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.3ms) Started GET "/admin/articles/525/edit" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"525"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "525"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 525], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 524]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 524]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 524], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 524]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (28.9ms) Rendered admin/articles/edit.html.haml within layouts/application (31.3ms) Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (232.4ms) Completed 200 OK in 245ms (Views: 238.7ms | ActiveRecord: 2.2ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/526/edit" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"526"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "526"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 526], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["pageable_id", 526], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 525]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 525]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 525], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 525]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/525/video_blocks/new?content_block%5Btemp_id%5D=1379446169509" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446169509"}, "page_id"=>"525"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "525"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 526]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 526], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.1ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/526" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446169509"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446169509"}}, "id"=>"525"}}, "commit"=>"Submit", "id"=>"526"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "526"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 526], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["page_id", 525], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 525]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 525]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 525], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 525]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.4ms) Rendered admin/articles/edit.html.haml within layouts/application (18.7ms) Completed 200 OK in 28ms (Views: 18.1ms | ActiveRecord: 4.8ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/527/edit" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"527"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "527"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 527], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["pageable_id", 527], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 526]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 526]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 526], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 526]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/526/video_blocks/new?content_block%5Btemp_id%5D=1379446169783" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446169783"}, "page_id"=>"526"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "526"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 527]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 527], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.5ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/527" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446169783"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446169783"}}, "id"=>"526"}}, "commit"=>"Submit", "id"=>"527"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "527"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 527], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 526]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 526]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 526], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 526]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.7ms) Rendered admin/articles/edit.html.haml within layouts/application (18.5ms) Completed 200 OK in 26ms (Views: 18.0ms | ActiveRecord: 2.1ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/528/edit" for 127.0.0.1 at 2013-09-17 23:29:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"528"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "528"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 528], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00], ["pageable_id", 528], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:29:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 527]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 527]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 527], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 527]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (7.7ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 528], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:29:30 UTC +00:00], ["page_id", 527], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:29:30 UTC +00:00], ["youtube", "12312312311"]]  (0.9ms) commit transaction Started GET "/admin/articles/528/edit" for 127.0.0.1 at 2013-09-17 23:29:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"528"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "528"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 528], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 527]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 527]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 527], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 527]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.6ms) Rendered admin/articles/edit.html.haml within layouts/application (16.8ms) Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/527/video_blocks/286" for 127.0.0.1 at 2013-09-17 23:29:30 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"527", "id"=>"286"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "527"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 527], ["id", "286"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 286]]  (1.9ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.5ms) Started GET "/admin/articles/528/edit" for 127.0.0.1 at 2013-09-17 23:29:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"528"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "528"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 528], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 527]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 527]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 527], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 527]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:03 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:30:03 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/529/edit" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"529"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "529"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 529], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:05 UTC +00:00], ["pageable_id", 529], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:30:05 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 528]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 528]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 528], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 528]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.5ms) Rendered admin/articles/edit.html.haml within layouts/application (58.0ms) Completed 200 OK in 105ms (Views: 72.1ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Started GET "/redditor/admin/pages/528/video_blocks/new?content_block%5Btemp_id%5D=1379446205590" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446205590"}, "page_id"=>"528"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "528"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 529]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 529], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (14.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.0ms) Completed 200 OK in 74ms (Views: 54.4ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Started POST "/redditor/admin/pages/528/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379446205590" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446205590"}, "page_id"=>"528"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "528"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:05 UTC +00:00], ["page_id", 528], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:30:05 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 529]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 529], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.1ms) Started GET "/admin/articles/529/edit" for 127.0.0.1 at 2013-09-17 23:30:05 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"529"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "529"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 529], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 528]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 528]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 528], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 528]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.3ms) Rendered admin/articles/edit.html.haml within layouts/application (37.2ms) Completed 200 OK in 42ms (Views: 36.5ms | ActiveRecord: 2.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (162.6ms) Completed 200 OK in 176ms (Views: 168.2ms | ActiveRecord: 3.0ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/530/edit" for 127.0.0.1 at 2013-09-17 23:30:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"530"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "530"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 530], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00], ["pageable_id", 530], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 529]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 529]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 529], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 529]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 530], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00], ["page_id", 529], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:30:06 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/530/edit" for 127.0.0.1 at 2013-09-17 23:30:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"530"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "530"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 530], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 529]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 529]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 529], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 529]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.1ms) Rendered admin/articles/edit.html.haml within layouts/application (20.4ms) Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.7ms) Started DELETE "/redditor/admin/pages/529/video_blocks/288" for 127.0.0.1 at 2013-09-17 23:30:06 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"529", "id"=>"288"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "529"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 529], ["id", "288"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 288]]  (1.8ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.7ms) Started GET "/admin/articles/530/edit" for 127.0.0.1 at 2013-09-17 23:30:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"530"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "530"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 530], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 529]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 529]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 529], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 529]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.7ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms) Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/531/edit" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"531"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "531"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 531], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["pageable_id", 531], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 530]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 530]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 530], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 530]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/530/video_blocks/new?content_block%5Btemp_id%5D=1379446208510" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446208510"}, "page_id"=>"530"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "530"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 531]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 531], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (13.5ms) Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/531" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446208510"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446208510"}}, "id"=>"530"}}, "commit"=>"Submit", "id"=>"531"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "531"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 531], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 530]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 530]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 530], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 530]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.7ms) Rendered admin/articles/edit.html.haml within layouts/application (49.8ms) Completed 200 OK in 57ms (Views: 50.3ms | ActiveRecord: 0.7ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/532/edit" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"532"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "532"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 532], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["pageable_id", 532], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 531]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 531]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 531], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 531]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/531/video_blocks/new?content_block%5Btemp_id%5D=1379446208735" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446208735"}, "page_id"=>"531"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "531"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 532]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 532], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.4ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/532" for 127.0.0.1 at 2013-09-17 23:30:08 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446208735"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446208735"}}, "id"=>"531"}}, "commit"=>"Submit", "id"=>"532"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "532"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 532], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["page_id", 531], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:30:08 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 531]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 531]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 531], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 531]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.3ms) Rendered admin/articles/edit.html.haml within layouts/application (16.8ms) Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 3.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/533/edit" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"533"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "533"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 533], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:03 UTC +00:00], ["pageable_id", 533], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:03 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 532]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 532]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 532], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 532]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.7ms) Rendered admin/articles/edit.html.haml within layouts/application (58.6ms) Completed 200 OK in 110ms (Views: 72.8ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Started GET "/redditor/admin/pages/532/text_blocks/new?content_block%5Btemp_id%5D=1379446263988" for 127.0.0.1 at 2013-09-17 23:31:03 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446263988"}, "page_id"=>"532"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "532"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 533]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 533], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.9ms) Completed 200 OK in 76ms (Views: 59.2ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Started PATCH "/admin/articles/533" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379446263988"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446263988"}}, "id"=>"532"}}, "commit"=>"Submit", "id"=>"533"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "533"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 533], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["page_id", 532], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 532]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 532]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 532], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 532]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.3ms) Rendered admin/articles/edit.html.haml within layouts/application (24.4ms) Completed 200 OK in 34ms (Views: 24.8ms | ActiveRecord: 2.4ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/534/edit" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"534"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "534"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 534], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["pageable_id", 534], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 533]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 533]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 533], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 533]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.2ms) Rendered admin/articles/edit.html.haml within layouts/application (9.8ms) Completed 200 OK in 16ms (Views: 9.0ms | ActiveRecord: 4.0ms) Started GET "/redditor/admin/pages/533/text_blocks/new?content_block%5Btemp_id%5D=1379446264344" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446264344"}, "page_id"=>"533"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "533"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 534]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 534], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.5ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/534" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379446264344"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379446264344"}}, "id"=>"533"}}, "commit"=>"Submit", "id"=>"534"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "534"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 534], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 533]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 533]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 533], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 533]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.8ms) Rendered admin/articles/edit.html.haml within layouts/application (14.1ms) Completed 200 OK in 23ms (Views: 13.7ms | ActiveRecord: 1.9ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/535/edit" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"535"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "535"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 535], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["pageable_id", 535], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 534]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 534]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 534], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 534]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 535], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00], ["page_id", 534], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:04 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/535/edit" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"535"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "535"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 535], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 534]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 534]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 534], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 534]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.6ms) Rendered admin/articles/edit.html.haml within layouts/application (14.2ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.9ms) Started DELETE "/redditor/admin/pages/534/text_blocks/324" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"534", "id"=>"324"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "534"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 534], ["id", "324"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 324]]  (1.0ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/535/edit" for 127.0.0.1 at 2013-09-17 23:31:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"535"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "535"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 535], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 534]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 534]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 534], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 534]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.6ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/536/edit" for 127.0.0.1 at 2013-09-17 23:31:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"536"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "536"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 536], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00], ["pageable_id", 536], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 535]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 535]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 535], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 535]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Rendered admin/articles/edit.html.haml within layouts/application (8.2ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.6ms) Started GET "/redditor/admin/pages/535/text_blocks/new?content_block%5Btemp_id%5D=1379446266817" for 127.0.0.1 at 2013-09-17 23:31:06 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446266817"}, "page_id"=>"535"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "535"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 536]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 536], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.7ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/535/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379446266817" for 127.0.0.1 at 2013-09-17 23:31:06 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446266817"}, "page_id"=>"535"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "535"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00], ["page_id", 535], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:06 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 536]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 536], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.5ms) Started GET "/admin/articles/536/edit" for 127.0.0.1 at 2013-09-17 23:31:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"536"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "536"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 536], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 535]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 535]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 535], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 535]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.4ms) Rendered admin/articles/edit.html.haml within layouts/application (18.5ms) Completed 200 OK in 25ms (Views: 19.2ms | ActiveRecord: 0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (145.9ms) Completed in 188ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:32 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:32 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/537/edit" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"537"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "537"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 537], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:34 UTC +00:00], ["pageable_id", 537], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:34 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 536]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 536]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 536], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 536]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.1ms) Rendered admin/articles/edit.html.haml within layouts/application (58.9ms) Completed 200 OK in 108ms (Views: 74.2ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Started GET "/redditor/admin/pages/536/text_blocks/new?content_block%5Btemp_id%5D=1379446294943" for 127.0.0.1 at 2013-09-17 23:31:34 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446294943"}, "page_id"=>"536"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "536"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 537]] Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 537], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.4ms) Completed 200 OK in 73ms (Views: 54.8ms | ActiveRecord: 1.8ms) Started PATCH "/admin/articles/537" for 127.0.0.1 at 2013-09-17 23:31:35 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"536"}}, "commit"=>"Submit", "id"=>"537"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "537"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 537], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 536]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 536]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 536], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 536]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 0.7ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/538/edit" for 127.0.0.1 at 2013-09-17 23:31:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"538"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "538"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 538], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00], ["pageable_id", 538], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 537]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 537]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 537], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 537]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.7ms) Rendered admin/articles/edit.html.haml within layouts/application (9.3ms) Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 2.6ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 538], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00], ["page_id", 537], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:37 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/538/edit" for 127.0.0.1 at 2013-09-17 23:31:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"538"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "538"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 538], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 537]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 537]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 537], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 537]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.0ms) Rendered admin/articles/edit.html.haml within layouts/application (22.9ms) Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 23:31:37 +0400 Started DELETE "/redditor/admin/pages/537/text_blocks/326" for 127.0.0.1 at 2013-09-17 23:31:37 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"537", "id"=>"326"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "537"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 537], ["id", "326"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 326]]  (2.4ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/538/edit" for 127.0.0.1 at 2013-09-17 23:31:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"538"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "538"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 538], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 537]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 537]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 537], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 537]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.6ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/539/edit" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"539"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "539"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 539], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["pageable_id", 539], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 538]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 538]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 538], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 538]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/538/text_blocks/new?content_block%5Btemp_id%5D=1379446299527" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446299527"}, "page_id"=>"538"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "538"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 539]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 539], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.6ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/539" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379446299527"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446299527"}}, "id"=>"538"}}, "commit"=>"Submit", "id"=>"539"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "539"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 539], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["page_id", 538], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 538]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 538]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 538], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 538]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (37.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (44.5ms) Rendered admin/articles/edit.html.haml within layouts/application (47.3ms) Completed 200 OK in 56ms (Views: 46.9ms | ActiveRecord: 4.3ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/540/edit" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"540"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "540"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 540], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["pageable_id", 540], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 539]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 539]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 539], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 539]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.6ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/539/text_blocks/new?content_block%5Btemp_id%5D=1379446299751" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446299751"}, "page_id"=>"539"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "539"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 540]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 540], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.9ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/539/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379446299751" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446299751"}, "page_id"=>"539"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "539"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["page_id", 539], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (2.0ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 540]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 540], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.4ms) Started GET "/admin/articles/540/edit" for 127.0.0.1 at 2013-09-17 23:31:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"540"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "540"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 540], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 539]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 539]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 539], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 539]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.0ms) Rendered admin/articles/edit.html.haml within layouts/application (18.5ms) Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.8ms)  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00], ["page_id", 540], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:39 UTC +00:00]]  (0.7ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (179.4ms) Completed 200 OK in 192ms (Views: 184.8ms | ActiveRecord: 3.5ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 1"], ["imageable_id", 281], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 2"], ["imageable_id", 281], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 3"], ["imageable_id", 281], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 540 [["pageable_type", "Article"], ["pageable_id", 541], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 540]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 540]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 540], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 540]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 281], ["imageable_type", "Redditor::SliderBlock"]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["height", 480], ["page_id", 541], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 541 [["pageable_type", "Article"], ["pageable_id", 542], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 541]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 541]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 541], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 541]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 542], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 542 [["pageable_type", "Article"], ["pageable_id", 543], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 542]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 542]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 542], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 542]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 543], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 4"], ["imageable_id", 282], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 5"], ["imageable_id", 282], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 6"], ["imageable_id", 282], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 543], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["height", 480], ["page_id", 543], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 543 [["pageable_type", "Article"], ["pageable_id", 544], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 543]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 543]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 543], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 543]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 544], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 7"], ["imageable_id", 283], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 8"], ["imageable_id", 283], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 9"], ["imageable_id", 283], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 544], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["height", 480], ["page_id", 544], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 544 [["pageable_type", "Article"], ["pageable_id", 545], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 544]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 544]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 544], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 544]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 283], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (31.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (36.3ms) Rendered articles/show.html.haml (43.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 545], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 10"], ["imageable_id", 284], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 11"], ["imageable_id", 284], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 12"], ["imageable_id", 284], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 545], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["height", 480], ["page_id", 545], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 545 [["pageable_type", "Article"], ["pageable_id", 546], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 545]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 545]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 545], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 545]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 284], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 546], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 13"], ["imageable_id", 285], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 14"], ["imageable_id", 285], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["description", "image name 15"], ["imageable_id", 285], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["page_id", 546], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["height", 480], ["page_id", 546], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 546 [["pageable_type", "Article"], ["pageable_id", 547], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 546]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 546]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 546], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 546]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 285], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/548/edit" for 127.0.0.1 at 2013-09-17 23:31:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"548"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "548"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 548], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00], ["pageable_id", 548], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 547]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 547]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 547], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 547]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/547/video_blocks/new?content_block%5Btemp_id%5D=1379446300967" for 127.0.0.1 at 2013-09-17 23:31:40 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446300967"}, "page_id"=>"547"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "547"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 548]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 548], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (23.4ms) Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Started PATCH "/admin/articles/548" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446300967"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446300967"}}, "id"=>"547"}}, "commit"=>"Submit", "id"=>"548"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "548"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 548], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 547]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 547]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 547], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 547]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.9ms) Completed 200 OK in 27ms (Views: 20.2ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/549/edit" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"549"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "549"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 549], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00], ["pageable_id", 549], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 548]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 548]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 548], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 548]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 549], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00], ["page_id", 548], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:41 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Started GET "/admin/articles/549/edit" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"549"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "549"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 549], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 548]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 548]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 548], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 548]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.3ms) Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/548/video_blocks/295" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"548", "id"=>"295"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "548"]] Redditor::VideoBlock Load (0.6ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 548], ["id", "295"]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 295]]  (1.8ms) commit transaction Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 3.3ms) Started GET "/admin/articles/549/edit" for 127.0.0.1 at 2013-09-17 23:31:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"549"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "549"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 549], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 548]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 548]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 548], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 548]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.9ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/550/edit" for 127.0.0.1 at 2013-09-17 23:31:43 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"550"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "550"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 550], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["pageable_id", 550], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 549]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 549]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 549], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 549]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.3ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/549/video_blocks/new?content_block%5Btemp_id%5D=1379446303671" for 127.0.0.1 at 2013-09-17 23:31:43 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446303671"}, "page_id"=>"549"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "549"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 550]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 550], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.0ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/550" for 127.0.0.1 at 2013-09-17 23:31:43 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446303671"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446303671"}}, "id"=>"549"}}, "commit"=>"Submit", "id"=>"550"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "550"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 550], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["page_id", 549], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 549]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 549]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 549], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 549]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.5ms) Completed 200 OK in 24ms (Views: 16.9ms | ActiveRecord: 3.3ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/551/edit" for 127.0.0.1 at 2013-09-17 23:31:43 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"551"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "551"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 551], ["pageable_type", "Article"]]  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00], ["pageable_id", 551], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:43 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 550]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 550]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 550], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 550]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/550/video_blocks/new?content_block%5Btemp_id%5D=1379446304052" for 127.0.0.1 at 2013-09-17 23:31:44 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446304052"}, "page_id"=>"550"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "550"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 551]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 551], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.3ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/550/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379446304052" for 127.0.0.1 at 2013-09-17 23:31:44 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446304052"}, "page_id"=>"550"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "550"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:44 UTC +00:00], ["page_id", 550], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:44 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 551]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 551], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.5ms) Started GET "/admin/articles/551/edit" for 127.0.0.1 at 2013-09-17 23:31:44 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"551"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "551"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 551], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 550]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 550]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 550], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 550]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.2ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.8ms) Completed 200 OK in 138ms (Views: 132.7ms | ActiveRecord: 3.0ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:51 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:51 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/552/edit" for 127.0.0.1 at 2013-09-17 23:31:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"552"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "552"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 552], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["pageable_id", 552], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00]]  (2.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 551]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 551]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 551], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 551]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.6ms) Rendered admin/articles/edit.html.haml within layouts/application (57.9ms) Completed 200 OK in 107ms (Views: 73.9ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Started GET "/redditor/admin/pages/551/video_blocks/new?content_block%5Btemp_id%5D=1379446313198" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446313198"}, "page_id"=>"551"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "551"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 552]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 552], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (16.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (51.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (57.7ms) Completed 200 OK in 84ms (Views: 63.3ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Started POST "/redditor/admin/pages/551/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379446313198" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446313198"}, "page_id"=>"551"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "551"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["page_id", 551], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 552]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 552], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.5ms) Started GET "/admin/articles/552/edit" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"552"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "552"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 552], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 551]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 551]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 551], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 551]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (16.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.9ms) Rendered admin/articles/edit.html.haml within layouts/application (36.4ms) Completed 200 OK in 39ms (Views: 36.2ms | ActiveRecord: 1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (160.4ms) Completed 200 OK in 175ms (Views: 166.3ms | ActiveRecord: 3.8ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/553/edit" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"553"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "553"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 553], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["pageable_id", 553], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 552]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 552]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 552], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 552]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/552/video_blocks/new?content_block%5Btemp_id%5D=1379446313757" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446313757"}, "page_id"=>"552"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "552"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 553]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 553], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.2ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/553" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446313757"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379446313757"}}, "id"=>"552"}}, "commit"=>"Submit", "id"=>"553"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "553"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 553], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 552]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 552]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 552], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 552]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.9ms) Rendered admin/articles/edit.html.haml within layouts/application (18.8ms) Completed 200 OK in 27ms (Views: 18.4ms | ActiveRecord: 2.0ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/554/edit" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"554"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "554"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 554], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["pageable_id", 554], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 553]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 553]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 553], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 553]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 554], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["page_id", 553], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:53 UTC +00:00], ["youtube", "11111111111"]]  (1.1ms) commit transaction Started GET "/admin/articles/554/edit" for 127.0.0.1 at 2013-09-17 23:31:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"554"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "554"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 554], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 553]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 553]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 553], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 553]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.6ms) Rendered admin/articles/edit.html.haml within layouts/application (18.2ms) Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/553/video_blocks/299" for 127.0.0.1 at 2013-09-17 23:31:54 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"553", "id"=>"299"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "553"]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 553], ["id", "299"]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 299]]  (2.2ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/554/edit" for 127.0.0.1 at 2013-09-17 23:31:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"554"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "554"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 554], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 553]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 553]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 553], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 553]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.6ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/555/edit" for 127.0.0.1 at 2013-09-17 23:31:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"555"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "555"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 555], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["pageable_id", 555], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 554]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 554]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 554], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 554]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/554/video_blocks/new?content_block%5Btemp_id%5D=1379446316361" for 127.0.0.1 at 2013-09-17 23:31:56 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446316361"}, "page_id"=>"554"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "554"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 555]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 555], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.3ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/555" for 127.0.0.1 at 2013-09-17 23:31:56 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379446316361"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379446316361"}}, "id"=>"554"}}, "commit"=>"Submit", "id"=>"555"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "555"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 555], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["page_id", 554], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 554]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 554]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 554], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 554]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.6ms) Rendered admin/articles/edit.html.haml within layouts/application (16.1ms) Completed 200 OK in 26ms (Views: 16.6ms | ActiveRecord: 3.4ms)  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["page_id", 555], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["description", "image name 1"], ["imageable_id", 286], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["description", "image name 2"], ["imageable_id", 286], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["description", "image name 3"], ["imageable_id", 286], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["page_id", 555], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["height", 480], ["page_id", 555], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 555 [["pageable_type", "Article"], ["pageable_id", 556], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 555]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 555]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 555], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 555]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 286], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (35.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (40.5ms) Rendered articles/show.html.haml (47.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["page_id", 556], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["description", "image name 4"], ["imageable_id", 287], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00], ["description", "image name 5"], ["imageable_id", 287], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 6"], ["imageable_id", 287], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 556], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["height", 480], ["page_id", 556], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 556 [["pageable_type", "Article"], ["pageable_id", 557], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 556]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 556]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 556], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 556]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 287], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 557], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 7"], ["imageable_id", 288], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 8"], ["imageable_id", 288], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 9"], ["imageable_id", 288], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 557], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["height", 480], ["page_id", 557], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 557 [["pageable_type", "Article"], ["pageable_id", 558], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 557]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 557]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 557], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 557]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 288], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 558], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 10"], ["imageable_id", 289], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 11"], ["imageable_id", 289], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 12"], ["imageable_id", 289], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 558], ["position", 2], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["height", 480], ["page_id", 558], ["position", 3], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 558 [["pageable_type", "Article"], ["pageable_id", 559], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 558]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 558]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 558], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 558]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 559], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 13"], ["imageable_id", 290], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 14"], ["imageable_id", 290], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["description", "image name 15"], ["imageable_id", 290], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 559 [["pageable_type", "Article"], ["pageable_id", 560], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 559]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 559]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 559], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 559]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 290], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["height", 480], ["page_id", 560], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 560 [["pageable_type", "Article"], ["pageable_id", 561], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 560]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 560]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 560], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 560]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 561], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 561 [["pageable_type", "Article"], ["pageable_id", 562], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 561]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 561]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 561], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 561]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/563/edit" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"563"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "563"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 563], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["pageable_id", 563], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 562]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 562]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 562], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 562]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/562/text_blocks/new?content_block%5Btemp_id%5D=1379446317619" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446317619"}, "page_id"=>"562"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "562"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 563]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 563], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (16.6ms) Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 0.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Started POST "/redditor/admin/pages/562/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379446317619" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446317619"}, "page_id"=>"562"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "562"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["page_id", 562], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (2.3ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 563]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 563], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Started GET "/admin/articles/563/edit" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"563"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "563"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 563], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 562]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 562]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 562], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 562]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.9ms) Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 1.0ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/564/edit" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"564"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "564"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 564], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["pageable_id", 564], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 563]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 563]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 563], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 563]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 2.0ms) Completed 200 OK in 139ms (Views: 132.8ms | ActiveRecord: 3.0ms) Started GET "/redditor/admin/pages/563/text_blocks/new?content_block%5Btemp_id%5D=1379446317869" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446317869"}, "page_id"=>"563"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "563"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 564]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 564], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/564" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379446317869"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379446317869"}}, "id"=>"563"}}, "commit"=>"Submit", "id"=>"564"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "564"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 564], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 563]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 563]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 563], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 563]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.9ms) Completed 200 OK in 21ms (Views: 13.5ms | ActiveRecord: 0.7ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/565/edit" for 127.0.0.1 at 2013-09-17 23:31:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"565"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "565"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 565], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00], ["pageable_id", 565], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:31:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 564]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 564]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 564], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 564]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 565], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 19:31:58 UTC +00:00], ["page_id", 564], ["position", 1], ["updated_at", Tue, 17 Sep 2013 19:31:58 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/565/edit" for 127.0.0.1 at 2013-09-17 23:31:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"565"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "565"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 565], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 564]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 564]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 564], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 564]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.2ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/564/text_blocks/340" for 127.0.0.1 at 2013-09-17 23:31:58 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"564", "id"=>"340"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "564"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 564], ["id", "340"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 340]]  (1.1ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.9ms) Started GET "/admin/articles/565/edit" for 127.0.0.1 at 2013-09-17 23:31:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"565"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "565"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 565], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 564]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 564]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 564], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 564]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/566/edit" for 127.0.0.1 at 2013-09-17 23:32:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"566"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "566"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 566], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00], ["pageable_id", 566], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 565]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 565]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 565], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 565]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/565/text_blocks/new?content_block%5Btemp_id%5D=1379446320343" for 127.0.0.1 at 2013-09-17 23:32:00 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379446320343"}, "page_id"=>"565"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "565"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 566]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 566], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.6ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/566" for 127.0.0.1 at 2013-09-17 23:32:00 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379446320343"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379446320343"}}, "id"=>"565"}}, "commit"=>"Submit", "id"=>"566"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "566"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 566], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00], ["page_id", 565], ["position", 0], ["updated_at", Tue, 17 Sep 2013 19:32:00 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 565]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 565]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 565], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 565]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.9ms) Completed 200 OK in 23ms (Views: 14.6ms | ActiveRecord: 3.6ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (21.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["page_id", 566], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 1"], ["imageable_id", 291], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 2"], ["imageable_id", 291], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 3"], ["imageable_id", 291], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["page_id", 566], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["height", 480], ["page_id", 566], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]] SQL (1.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 566 [["pageable_type", "Article"], ["pageable_id", 567], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 566]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 566]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 566], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 566]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 291], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (36.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (61.2ms) Rendered articles/show.html.haml (71.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["page_id", 567], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 4"], ["imageable_id", 292], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 5"], ["imageable_id", 292], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 6"], ["imageable_id", 292], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["page_id", 567], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["height", 480], ["page_id", 567], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 567 [["pageable_type", "Article"], ["pageable_id", 568], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 567]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 567]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 567], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 567]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 292], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["page_id", 568], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00], ["description", "image name 7"], ["imageable_id", 293], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:39 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["description", "image name 8"], ["imageable_id", 293], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["description", "image name 9"], ["imageable_id", 293], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["page_id", 568], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["height", 480], ["page_id", 568], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 568 [["pageable_type", "Article"], ["pageable_id", 569], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 568]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 568]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 568], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 568]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 293], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.0ms) Rendered collection (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:40 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/570/edit" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"570"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "570"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 570], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["pageable_id", 570], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 569]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 569]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 569], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 569]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.0ms) Completed 200 OK in 85ms (Views: 74.2ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Started GET "/redditor/admin/pages/569/video_blocks/new?content_block%5Btemp_id%5D=1379449362276" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449362276"}, "page_id"=>"569"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "569"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 570]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 570], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (16.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (50.0ms) Completed 200 OK in 67ms (Views: 63.7ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Started PATCH "/admin/articles/570" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449362276"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449362276"}}, "id"=>"569"}}, "commit"=>"Submit", "id"=>"570"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "570"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 570], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["page_id", 569], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 569]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 569]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 569], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 569]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.9ms) Completed 200 OK in 34ms (Views: 27.5ms | ActiveRecord: 1.9ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/571/edit" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"571"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "571"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 571], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["pageable_id", 571], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 570]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 570]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 570], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 570]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.0ms) Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 3.4ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 571], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["page_id", 570], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:42 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Started GET "/admin/articles/571/edit" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"571"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "571"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 571], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 570]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 570]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 570], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 570]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.6ms) Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/570/video_blocks/310" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"570", "id"=>"310"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "570"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 570], ["id", "310"]]  (0.0ms) begin transaction SQL (1.9ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 310]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 3.1ms) Started GET "/admin/articles/571/edit" for 127.0.0.1 at 2013-09-18 00:22:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"571"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "571"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 571], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 570]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 570]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 570], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 570]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.6ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/572/edit" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"572"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "572"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 572], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["pageable_id", 572], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 571]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 571]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 571], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 571]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/571/video_blocks/new?content_block%5Btemp_id%5D=1379449368168" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449368168"}, "page_id"=>"571"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "571"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 572]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 572], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.4ms) Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/571/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379449368168" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449368168"}, "page_id"=>"571"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "571"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["page_id", 571], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["youtube", "11111111111"]]  (2.4ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 572]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 572], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (14.1ms) Started GET "/admin/articles/572/edit" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"572"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "572"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 572], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 571]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 571]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 571], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 571]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.6ms) Completed 200 OK in 25ms (Views: 21.8ms | ActiveRecord: 0.8ms) Completed 200 OK in 152ms (Views: 145.8ms | ActiveRecord: 3.3ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/573/edit" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"573"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "573"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 573], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["pageable_id", 573], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 572]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 572]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 572], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 572]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/572/video_blocks/new?content_block%5Btemp_id%5D=1379449368522" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449368522"}, "page_id"=>"572"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "572"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 573]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 573], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.7ms) Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/573" for 127.0.0.1 at 2013-09-18 00:22:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449368522"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379449368522"}}, "id"=>"572"}}, "commit"=>"Submit", "id"=>"573"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "573"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 573], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 572]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 572]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 572], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 572]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.6ms) Completed 200 OK in 27ms (Views: 18.9ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["page_id", 573], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 573 [["pageable_type", "Article"], ["pageable_id", 574], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 573]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 573]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 573], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 573]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["height", 480], ["page_id", 574], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 574 [["pageable_type", "Article"], ["pageable_id", 575], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 574]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 574]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 574], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 574]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["page_id", 575], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 10"], ["imageable_id", 294], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 11"], ["imageable_id", 294], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 12"], ["imageable_id", 294], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["page_id", 575], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["height", 480], ["page_id", 575], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 575 [["pageable_type", "Article"], ["pageable_id", 576], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 575]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 575]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 575], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 575]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["page_id", 576], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 13"], ["imageable_id", 295], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 14"], ["imageable_id", 295], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["description", "image name 15"], ["imageable_id", 295], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 576 [["pageable_type", "Article"], ["pageable_id", 577], ["updated_at", Tue, 17 Sep 2013 20:22:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 576]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 576]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 576], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 576]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 295], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/578/edit" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"578"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "578"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 578], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["pageable_id", 578], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 577]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 577]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 577], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 577]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/577/text_blocks/new?content_block%5Btemp_id%5D=1379449369084" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449369084"}, "page_id"=>"577"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "577"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 578]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 578], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (20.0ms) Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Started PATCH "/admin/articles/578" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449369084"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449369084"}}, "id"=>"577"}}, "commit"=>"Submit", "id"=>"578"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "578"]]  (0.3ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 578], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["page_id", 577], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 577]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 577]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 577], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 577]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.0ms) Completed 200 OK in 27ms (Views: 18.6ms | ActiveRecord: 2.7ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/579/edit" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"579"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "579"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 579], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["pageable_id", 579], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 578]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 578]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 578], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 578]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 579], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00], ["page_id", 578], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:22:49 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/579/edit" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"579"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "579"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 579], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 578]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 578]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 578], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 578]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.9ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/578/text_blocks/348" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"578", "id"=>"348"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "578"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 578], ["id", "348"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 348]]  (1.1ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/579/edit" for 127.0.0.1 at 2013-09-18 00:22:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"579"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "579"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 579], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 578]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 578]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 578], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 578]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.6ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/580/edit" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"580"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "580"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 580], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00], ["pageable_id", 580], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 579]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 579]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 579], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 579]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/579/text_blocks/new?content_block%5Btemp_id%5D=1379449374598" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449374598"}, "page_id"=>"579"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "579"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 580]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 580], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.5ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/579/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379449374598" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449374598"}, "page_id"=>"579"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "579"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00], ["page_id", 579], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 580]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 580], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.5ms) Started GET "/admin/articles/580/edit" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"580"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "580"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 580], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 579]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 579]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 579], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 579]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.1ms) Completed 200 OK in 21ms (Views: 17.7ms | ActiveRecord: 0.9ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/581/edit" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"581"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "581"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 581], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00], ["pageable_id", 581], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:22:54 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 580]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 580]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 580], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 580]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.8ms) Completed 200 OK in 140ms (Views: 133.5ms | ActiveRecord: 3.0ms) Started GET "/redditor/admin/pages/580/text_blocks/new?content_block%5Btemp_id%5D=1379449374888" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449374888"}, "page_id"=>"580"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "580"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 581]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 581], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.4ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/581" for 127.0.0.1 at 2013-09-18 00:22:54 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449374888"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379449374888"}}, "id"=>"580"}}, "commit"=>"Submit", "id"=>"581"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "581"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 581], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 580]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 580]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 580], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 580]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Completed 200 OK in 21ms (Views: 13.5ms | ActiveRecord: 0.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:46 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:46 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/582/edit" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"582"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "582"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 582], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["pageable_id", 582], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (1.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 581]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 581]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 581], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 581]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.4ms) Rendered admin/articles/edit.html.haml within layouts/application (63.9ms) Completed 200 OK in 111ms (Views: 77.6ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Started GET "/redditor/admin/pages/581/text_blocks/new?content_block%5Btemp_id%5D=1379449908529" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449908529"}, "page_id"=>"581"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "581"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 582]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 582], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (53.1ms) Completed 200 OK in 77ms (Views: 59.9ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Started PATCH "/admin/articles/582" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449908529"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449908529"}}, "id"=>"581"}}, "commit"=>"Submit", "id"=>"582"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "582"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 582], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["page_id", 581], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 581]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 581]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 581], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 581]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.3ms) Rendered admin/articles/edit.html.haml within layouts/application (23.2ms) Completed 200 OK in 33ms (Views: 23.5ms | ActiveRecord: 3.0ms) Article Load (5.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/583/edit" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"583"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "583"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 583], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["pageable_id", 583], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 582]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 582]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 582], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 582]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.6ms) Rendered admin/articles/edit.html.haml within layouts/application (8.9ms) Completed 200 OK in 15ms (Views: 8.4ms | ActiveRecord: 3.5ms) Started GET "/redditor/admin/pages/582/text_blocks/new?content_block%5Btemp_id%5D=1379449908858" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449908858"}, "page_id"=>"582"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "582"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 583]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 583], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.8ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/583" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449908858"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379449908858"}}, "id"=>"582"}}, "commit"=>"Submit", "id"=>"583"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "583"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 583], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 582]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 582]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 582], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 582]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.9ms) Rendered admin/articles/edit.html.haml within layouts/application (15.0ms) Completed 200 OK in 24ms (Views: 14.2ms | ActiveRecord: 2.2ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/584/edit" for 127.0.0.1 at 2013-09-18 00:31:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"584"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "584"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 584], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00], ["pageable_id", 584], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:48 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 583]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 583]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 583], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 583]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 584], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 20:31:49 UTC +00:00], ["page_id", 583], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:31:49 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/584/edit" for 127.0.0.1 at 2013-09-18 00:31:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"584"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "584"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 584], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 583]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 583]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 583], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 583]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.7ms) Rendered admin/articles/edit.html.haml within layouts/application (13.6ms) Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/583/text_blocks/351" for 127.0.0.1 at 2013-09-18 00:31:49 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"583", "id"=>"351"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "583"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 583], ["id", "351"]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 351]]  (0.7ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/584/edit" for 127.0.0.1 at 2013-09-18 00:31:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"584"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "584"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 584], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 583]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 583]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 583], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 583]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.6ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/585/edit" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"585"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "585"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 585], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["pageable_id", 585], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 584]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 584]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 584], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 584]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.6ms) Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 2.6ms) Started GET "/redditor/admin/pages/584/text_blocks/new?content_block%5Btemp_id%5D=1379449914333" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449914333"}, "page_id"=>"584"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "584"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 585]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 585], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.4ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/584/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379449914333" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449914333"}, "page_id"=>"584"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "584"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["page_id", 584], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 585]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 585], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.4ms) Started GET "/admin/articles/585/edit" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"585"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "585"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 585], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 584]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 584]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 584], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 584]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.3ms) Rendered admin/articles/edit.html.haml within layouts/application (16.8ms) Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 0.8ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/586/edit" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"586"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "586"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 586], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["pageable_id", 586], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 585]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 585]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 585], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 585]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 14ms (Views: 7.8ms | ActiveRecord: 2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (140.0ms) Completed 200 OK in 152ms (Views: 146.3ms | ActiveRecord: 3.1ms) Started GET "/redditor/admin/pages/585/video_blocks/new?content_block%5Btemp_id%5D=1379449914572" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449914572"}, "page_id"=>"585"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "585"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 586]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 586], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (26.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (26.5ms) Completed 200 OK in 47ms (Views: 26.9ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Started PATCH "/admin/articles/586" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449914572"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449914572"}}, "id"=>"585"}}, "commit"=>"Submit", "id"=>"586"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "586"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 586], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["page_id", 585], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 585]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 585]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 585], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 585]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.2ms) Rendered admin/articles/edit.html.haml within layouts/application (22.5ms) Completed 200 OK in 31ms (Views: 22.8ms | ActiveRecord: 2.2ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:54 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/587/edit" for 127.0.0.1 at 2013-09-18 00:31:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"587"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "587"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 587], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00], ["pageable_id", 587], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 586]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 586]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 586], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 586]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/586/video_blocks/new?content_block%5Btemp_id%5D=1379449915093" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449915093"}, "page_id"=>"586"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "586"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 587]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 587], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.7ms) Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/587" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449915093"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379449915093"}}, "id"=>"586"}}, "commit"=>"Submit", "id"=>"587"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "587"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 587], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 586]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 586]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 586], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 586]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.4ms) Rendered admin/articles/edit.html.haml within layouts/application (17.4ms) Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 0.8ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/588/edit" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"588"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "588"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 588], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00], ["pageable_id", 588], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 587]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 587]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 587], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 587]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.7ms) Completed 200 OK in 14ms (Views: 8.1ms | ActiveRecord: 2.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 588], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00], ["page_id", 587], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:31:55 UTC +00:00], ["youtube", "11111111111"]]  (1.0ms) commit transaction Started GET "/admin/articles/588/edit" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"588"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "588"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 588], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 587]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 587]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 587], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 587]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.9ms) Rendered admin/articles/edit.html.haml within layouts/application (19.4ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/587/video_blocks/315" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"587", "id"=>"315"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "587"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 587], ["id", "315"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 315]]  (1.9ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.6ms) Started GET "/admin/articles/588/edit" for 127.0.0.1 at 2013-09-18 00:31:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"588"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "588"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 588], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 587]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 587]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 587], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 587]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/589/edit" for 127.0.0.1 at 2013-09-18 00:32:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"589"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "589"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 589], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["pageable_id", 589], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 588]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 588]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 588], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 588]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/588/video_blocks/new?content_block%5Btemp_id%5D=1379449920661" for 127.0.0.1 at 2013-09-18 00:32:00 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449920661"}, "page_id"=>"588"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "588"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 589]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 589], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.3ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/588/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379449920661" for 127.0.0.1 at 2013-09-18 00:32:00 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449920661"}, "page_id"=>"588"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "588"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["page_id", 588], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 589]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 589], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.7ms) Started GET "/admin/articles/589/edit" for 127.0.0.1 at 2013-09-18 00:32:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"589"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "589"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 589], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 588]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 588]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 588], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 588]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.8ms) Rendered admin/articles/edit.html.haml within layouts/application (25.2ms) Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (146.3ms) Completed 200 OK in 152ms (Views: 146.6ms | ActiveRecord: 2.9ms)  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["page_id", 589], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 589 [["pageable_type", "Article"], ["pageable_id", 590], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 589]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 589]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 589], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 589]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00], ["page_id", 590], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:00 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 1"], ["imageable_id", 296], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 2"], ["imageable_id", 296], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 3"], ["imageable_id", 296], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 590 [["pageable_type", "Article"], ["pageable_id", 591], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 590]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 590]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 590], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 590]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 296], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["height", 480], ["page_id", 591], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 591 [["pageable_type", "Article"], ["pageable_id", 592], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 591]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 591]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 591], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 591]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 592], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 4"], ["imageable_id", 297], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 5"], ["imageable_id", 297], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 6"], ["imageable_id", 297], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 592], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["height", 480], ["page_id", 592], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 592 [["pageable_type", "Article"], ["pageable_id", 593], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 592]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 592]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 592], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 592]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 593], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 7"], ["imageable_id", 298], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 8"], ["imageable_id", 298], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 9"], ["imageable_id", 298], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 593], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["height", 480], ["page_id", 593], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 593 [["pageable_type", "Article"], ["pageable_id", 594], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 593]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 593]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 593], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 593]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 298], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.5ms) Rendered collection (33.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (38.9ms) Rendered articles/show.html.haml (46.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 594], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 10"], ["imageable_id", 299], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 11"], ["imageable_id", 299], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 12"], ["imageable_id", 299], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 594], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["height", 480], ["page_id", 594], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 594 [["pageable_type", "Article"], ["pageable_id", 595], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 594]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 594]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 594], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 594]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 299], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 595], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 13"], ["imageable_id", 300], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 14"], ["imageable_id", 300], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["description", "image name 15"], ["imageable_id", 300], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["page_id", 595], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["height", 480], ["page_id", 595], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 595 [["pageable_type", "Article"], ["pageable_id", 596], ["updated_at", Tue, 17 Sep 2013 20:32:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 595]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 595]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 595], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 595]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 300], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.3ms) Rendered collection (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.3ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:06 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:06 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/597/edit" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"597"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "597"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 597], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:08 UTC +00:00], ["pageable_id", 597], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:08 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 596]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 596]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 596], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 596]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (36.7ms) Rendered admin/articles/edit.html.haml within layouts/application (65.9ms) Completed 200 OK in 121ms (Views: 81.4ms | ActiveRecord: 5.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Started GET "/redditor/admin/pages/596/text_blocks/new?content_block%5Btemp_id%5D=1379449928841" for 127.0.0.1 at 2013-09-18 00:32:08 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449928841"}, "page_id"=>"596"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "596"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 597]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 597], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (53.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (62.9ms) Completed 200 OK in 91ms (Views: 69.5ms | ActiveRecord: 2.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Started PATCH "/admin/articles/597" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449928841"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449928841"}}, "id"=>"596"}}, "commit"=>"Submit", "id"=>"597"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "597"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 597], ["pageable_type", "Article"]] SQL (1.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00], ["page_id", 596], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 596]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 596]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 596], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 596]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.5ms) Rendered admin/articles/edit.html.haml within layouts/application (27.2ms) Completed 200 OK in 40ms (Views: 28.1ms | ActiveRecord: 4.4ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/598/edit" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"598"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "598"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 598], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00], ["pageable_id", 598], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 597]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 597]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 597], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 597]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.8ms) Rendered admin/articles/edit.html.haml within layouts/application (10.3ms) Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 3.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 598], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00], ["page_id", 597], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:09 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/598/edit" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"598"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "598"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 598], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 597]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 597]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 597], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 597]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.7ms) Rendered admin/articles/edit.html.haml within layouts/application (12.6ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/597/text_blocks/359" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"597", "id"=>"359"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "597"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 597], ["id", "359"]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 359]]  (0.7ms) commit transaction Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.4ms) Started GET "/admin/articles/598/edit" for 127.0.0.1 at 2013-09-18 00:32:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"598"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "598"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 598], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 597]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 597]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 597], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 597]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.7ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/599/edit" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"599"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "599"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 599], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["pageable_id", 599], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 598]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 598]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 598], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 598]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.9ms) Rendered admin/articles/edit.html.haml within layouts/application (10.6ms) Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 3.2ms) Started GET "/redditor/admin/pages/598/text_blocks/new?content_block%5Btemp_id%5D=1379449934478" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449934478"}, "page_id"=>"598"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "598"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 599]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 599], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.9ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/599" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379449934478"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379449934478"}}, "id"=>"598"}}, "commit"=>"Submit", "id"=>"599"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "599"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 599], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 598]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 598]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 598], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 598]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.5ms) Rendered admin/articles/edit.html.haml within layouts/application (14.7ms) Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 1.6ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/600/edit" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"600"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "600"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 600], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["pageable_id", 600], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 599]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 599]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 599], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 599]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.9ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/599/text_blocks/new?content_block%5Btemp_id%5D=1379449934667" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449934667"}, "page_id"=>"599"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "599"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 600]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 600], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.0ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/599/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379449934667" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379449934667"}, "page_id"=>"599"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "599"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["page_id", 599], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.8ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 600]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 600], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.7ms) Started GET "/admin/articles/600/edit" for 127.0.0.1 at 2013-09-18 00:32:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"600"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "600"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 600], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 599]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 599]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 599], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 599]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Rendered admin/articles/edit.html.haml within layouts/application (16.5ms) Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 0.9ms)  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["page_id", 600], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.6ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (154.8ms) Completed 200 OK in 166ms (Views: 161.4ms | ActiveRecord: 1.9ms)  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["description", "image name 1"], ["imageable_id", 301], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00], ["description", "image name 2"], ["imageable_id", 301], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 3"], ["imageable_id", 301], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 600], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["height", 480], ["page_id", 600], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 600 [["pageable_type", "Article"], ["pageable_id", 601], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 600]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 600]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 600], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 600]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 301], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.4ms) Rendered collection (66.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (72.2ms) Rendered articles/show.html.haml (79.2ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 601], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 4"], ["imageable_id", 302], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 5"], ["imageable_id", 302], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 6"], ["imageable_id", 302], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 601], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["height", 480], ["page_id", 601], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 601 [["pageable_type", "Article"], ["pageable_id", 602], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 601]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 601]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 601], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 601]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 302], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 602], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 7"], ["imageable_id", 303], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 8"], ["imageable_id", 303], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["description", "image name 9"], ["imageable_id", 303], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 602], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["height", 480], ["page_id", 602], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 602 [["pageable_type", "Article"], ["pageable_id", 603], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 602]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 602]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 602], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 602]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 303], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/604/edit" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"604"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "604"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 604], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["pageable_id", 604], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 603]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 603]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 603], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 603]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/603/video_blocks/new?content_block%5Btemp_id%5D=1379449935551" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449935551"}, "page_id"=>"603"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "603"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 604]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 604], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (20.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (22.8ms) Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Started PATCH "/admin/articles/604" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449935551"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449935551"}}, "id"=>"603"}}, "commit"=>"Submit", "id"=>"604"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "604"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 604], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 603], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["youtube", "11111111111"]]  (8.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 603]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 603]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 603], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 603]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.1ms) Completed 200 OK in 40ms (Views: 24.6ms | ActiveRecord: 10.1ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/605/edit" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"605"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "605"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 605], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["pageable_id", 605], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 604]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 604]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 604], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 604]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.1ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 605], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["page_id", 604], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:15 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/605/edit" for 127.0.0.1 at 2013-09-18 00:32:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"605"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "605"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 605], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 604]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 604]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 604], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 604]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.7ms) Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/604/video_blocks/326" for 127.0.0.1 at 2013-09-18 00:32:16 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"604", "id"=>"326"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "604"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 604], ["id", "326"]]  (0.2ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 326]]  (1.6ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 2.7ms) Started GET "/admin/articles/605/edit" for 127.0.0.1 at 2013-09-18 00:32:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"605"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "605"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 605], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 604]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 604]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 604], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 604]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/606/edit" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"606"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "606"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 606], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["pageable_id", 606], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 605]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 605]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 605], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 605]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/605/video_blocks/new?content_block%5Btemp_id%5D=1379449941289" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449941289"}, "page_id"=>"605"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "605"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 606]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 606], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.7ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/606" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379449941289"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379449941289"}}, "id"=>"605"}}, "commit"=>"Submit", "id"=>"606"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "606"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 606], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 605]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 605]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 605], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 605]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.0ms) Completed 200 OK in 24ms (Views: 17.1ms | ActiveRecord: 0.8ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/607/edit" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"607"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "607"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 607], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["pageable_id", 607], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 606]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 606]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 606], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 606]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/606/video_blocks/new?content_block%5Btemp_id%5D=1379449941478" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379449941478"}, "page_id"=>"606"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "606"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 607]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 607], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.8ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/606/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379449941478" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379449941478"}, "page_id"=>"606"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "606"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["page_id", 606], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["youtube", "11111111111"]]  (2.3ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 607]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 607], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.3ms) Started GET "/admin/articles/607/edit" for 127.0.0.1 at 2013-09-18 00:32:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"607"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "607"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 607], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 606]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 606]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 606], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 606]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.8ms) Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 1.2ms) Completed 200 OK in 152ms (Views: 146.0ms | ActiveRecord: 3.1ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["page_id", 607], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 607 [["pageable_type", "Article"], ["pageable_id", 608], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 607]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 607]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 607], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 607]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["height", 480], ["page_id", 608], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 608 [["pageable_type", "Article"], ["pageable_id", 609], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 608]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 608]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 608], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 608]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["page_id", 609], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["description", "image name 10"], ["imageable_id", 304], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["description", "image name 11"], ["imageable_id", 304], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["description", "image name 12"], ["imageable_id", 304], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 609 [["pageable_type", "Article"], ["pageable_id", 610], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 609]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 609]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 609], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 609]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 304], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00], ["page_id", 610], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:32:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 305], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["description", "image name 14"], ["imageable_id", 305], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["description", "image name 15"], ["imageable_id", 305], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["page_id", 610], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["height", 480], ["page_id", 610], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 610 [["pageable_type", "Article"], ["pageable_id", 611], ["updated_at", Tue, 17 Sep 2013 20:32:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 610]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 610]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 610], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 610]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:55 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:37:55 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/612/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"612"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "612"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 612], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["pageable_id", 612], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 611]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 611]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 611], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 611]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.1ms) Rendered admin/articles/edit.html.haml within layouts/application (59.1ms) Completed 200 OK in 106ms (Views: 73.4ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Started GET "/redditor/admin/pages/611/text_blocks/new?content_block%5Btemp_id%5D=1379450277300" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450277300"}, "page_id"=>"611"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "611"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 612]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 612], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.8ms) Completed 200 OK in 74ms (Views: 57.3ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Started PATCH "/admin/articles/612" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379450277300"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379450277300"}}, "id"=>"611"}}, "commit"=>"Submit", "id"=>"612"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "612"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 612], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["page_id", 611], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 611]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 611]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 611], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 611]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.0ms) Rendered admin/articles/edit.html.haml within layouts/application (24.0ms) Completed 200 OK in 36ms (Views: 23.6ms | ActiveRecord: 5.0ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/613/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"613"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "613"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 613], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["pageable_id", 613], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 612]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 612]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 612], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 612]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/612/text_blocks/new?content_block%5Btemp_id%5D=1379450277621" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450277621"}, "page_id"=>"612"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "612"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 613]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 613], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.4ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.6ms) Started POST "/redditor/admin/pages/612/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379450277621" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379450277621"}, "page_id"=>"612"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "612"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["page_id", 612], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (2.0ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 613]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 613], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.3ms) Started GET "/admin/articles/613/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"613"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "613"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 613], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 612]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 612]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 612], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 612]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.5ms) Rendered admin/articles/edit.html.haml within layouts/application (12.3ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.6ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/614/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"614"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "614"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 614], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["pageable_id", 614], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 613]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 613]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 613], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 613]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (10.1ms) Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (154.6ms) Completed 200 OK in 168ms (Views: 161.0ms | ActiveRecord: 3.4ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 614], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00], ["page_id", 613], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:37:57 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/614/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"614"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "614"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 614], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 613]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 613]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 613], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 613]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.3ms) Rendered admin/articles/edit.html.haml within layouts/application (13.9ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 1.5ms) Started DELETE "/redditor/admin/pages/613/text_blocks/368" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"613", "id"=>"368"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "613"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 613], ["id", "368"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 368]]  (0.9ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/614/edit" for 127.0.0.1 at 2013-09-18 00:37:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"614"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "614"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 614], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 613]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 613]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 613], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 613]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.0ms) Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.5ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/615/edit" for 127.0.0.1 at 2013-09-18 00:38:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"615"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "615"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 615], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["pageable_id", 615], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 614]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 614]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 614], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 614]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/614/text_blocks/new?content_block%5Btemp_id%5D=1379450288180" for 127.0.0.1 at 2013-09-18 00:38:08 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450288180"}, "page_id"=>"614"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "614"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 615]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 615], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.6ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/615" for 127.0.0.1 at 2013-09-18 00:38:08 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379450288180"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379450288180"}}, "id"=>"614"}}, "commit"=>"Submit", "id"=>"615"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "615"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 615], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 614]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 614]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 614], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 614]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.8ms) Rendered admin/articles/edit.html.haml within layouts/application (13.1ms) Completed 200 OK in 21ms (Views: 13.6ms | ActiveRecord: 0.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 615], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 1"], ["imageable_id", 306], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 2"], ["imageable_id", 306], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 3"], ["imageable_id", 306], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 615], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["height", 480], ["page_id", 615], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 615 [["pageable_type", "Article"], ["pageable_id", 616], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 615]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 615]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 615], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 615]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 306], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.9ms) Rendered collection (37.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (43.2ms) Rendered articles/show.html.haml (50.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 616], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 4"], ["imageable_id", 307], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 5"], ["imageable_id", 307], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 6"], ["imageable_id", 307], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 616], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["height", 480], ["page_id", 616], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 616 [["pageable_type", "Article"], ["pageable_id", 617], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 616]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 616]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 616], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 616]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 307], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.3ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 617], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 7"], ["imageable_id", 308], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 8"], ["imageable_id", 308], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["description", "image name 9"], ["imageable_id", 308], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 617], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["height", 480], ["page_id", 617], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 617 [["pageable_type", "Article"], ["pageable_id", 618], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 617]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 617]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 617], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 617]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 308], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.0ms) Rendered collection (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (1.2ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 618], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 618 [["pageable_type", "Article"], ["pageable_id", 619], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 618]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 618]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 618], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 618]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00], ["page_id", 619], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:08 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 10"], ["imageable_id", 309], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 11"], ["imageable_id", 309], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 12"], ["imageable_id", 309], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["page_id", 619], ["position", 2], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["height", 480], ["page_id", 619], ["position", 3], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 619 [["pageable_type", "Article"], ["pageable_id", 620], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 619]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 619]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 619], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 619]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["height", 480], ["page_id", 620], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 620 [["pageable_type", "Article"], ["pageable_id", 621], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 620]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 620]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 620], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 620]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["page_id", 621], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 13"], ["imageable_id", 310], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 14"], ["imageable_id", 310], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["description", "image name 15"], ["imageable_id", 310], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 621 [["pageable_type", "Article"], ["pageable_id", 622], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 621]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 621]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 621], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 621]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 310], ["imageable_type", "Redditor::SliderBlock"]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/623/edit" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"623"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "623"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 623], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["pageable_id", 623], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 622]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 622]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 622], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 622]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/622/video_blocks/new?content_block%5Btemp_id%5D=1379450289352" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450289352"}, "page_id"=>"622"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "622"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 623]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 623], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (22.1ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.3ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Started PATCH "/admin/articles/623" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379450289352"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379450289352"}}, "id"=>"622"}}, "commit"=>"Submit", "id"=>"623"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "623"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 623], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["page_id", 622], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["youtube", "11111111111"]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 622]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 622]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 622], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 622]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.1ms) Completed 200 OK in 31ms (Views: 22.7ms | ActiveRecord: 3.5ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/624/edit" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"624"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "624"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 624], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["pageable_id", 624], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 623]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 623]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 623], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 623]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/623/video_blocks/new?content_block%5Btemp_id%5D=1379450289877" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450289877"}, "page_id"=>"623"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "623"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 624]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 624], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.2ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/623/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379450289877" for 127.0.0.1 at 2013-09-18 00:38:09 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379450289877"}, "page_id"=>"623"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "623"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["page_id", 623], ["position", 0], ["updated_at", Tue, 17 Sep 2013 20:38:09 UTC +00:00], ["youtube", "11111111111"]]  (1.8ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 624]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 624], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.2ms) Started GET "/admin/articles/624/edit" for 127.0.0.1 at 2013-09-18 00:38:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"624"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "624"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 624], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 623]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 623]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 623], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 623]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (27.9ms) Completed 200 OK in 36ms (Views: 32.8ms | ActiveRecord: 1.0ms) Completed 200 OK in 158ms (Views: 152.3ms | ActiveRecord: 2.7ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/625/edit" for 127.0.0.1 at 2013-09-18 00:38:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"625"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "625"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 625], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00], ["pageable_id", 625], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 624]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 624]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 624], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 624]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Completed 200 OK in 16ms (Views: 9.3ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 625], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00], ["page_id", 624], ["position", 1], ["updated_at", Tue, 17 Sep 2013 20:38:10 UTC +00:00], ["youtube", "11111111111"]]  (0.6ms) commit transaction Started GET "/admin/articles/625/edit" for 127.0.0.1 at 2013-09-18 00:38:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"625"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "625"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 625], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 624]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 624]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 624], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 624]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.1ms) Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 1.1ms) Started DELETE "/redditor/admin/pages/624/video_blocks/337" for 127.0.0.1 at 2013-09-18 00:38:10 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"624", "id"=>"337"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "624"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 624], ["id", "337"]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 337]]  (0.7ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/625/edit" for 127.0.0.1 at 2013-09-18 00:38:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"625"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "625"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 625], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 624]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 624]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 624], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 624]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:20 UTC +00:00], ["title", "Test article"], ["updated_at", Tue, 17 Sep 2013 20:38:20 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/626/edit" for 127.0.0.1 at 2013-09-18 00:38:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"626"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "626"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 626], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Sep 2013 20:38:20 UTC +00:00], ["pageable_id", 626], ["pageable_type", "Article"], ["updated_at", Tue, 17 Sep 2013 20:38:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 625]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 625]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 625], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 625]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/625/video_blocks/new?content_block%5Btemp_id%5D=1379450300580" for 127.0.0.1 at 2013-09-18 00:38:20 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379450300580"}, "page_id"=>"625"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "625"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 626]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 626], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.1ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/626" for 127.0.0.1 at 2013-09-18 00:38:20 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379450300580"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379450300580"}}, "id"=>"625"}}, "commit"=>"Submit", "id"=>"626"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "626"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 626], ["pageable_type", "Article"]]  (0.2ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 625]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 625]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 625], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 625]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.4ms) Completed 200 OK in 28ms (Views: 20.3ms | ActiveRecord: 1.0ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:06:58 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:06:58 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/627/edit" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"627"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "627"]] Redditor::Page Load (1.0ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 627], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00], ["pageable_id", 627], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.6ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 626]] Redditor::VideoBlock Load (0.5ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 626]] Redditor::Image Load (0.9ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 626], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.5ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 626]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (41.0ms) Rendered admin/articles/edit.html.haml within layouts/application (83.9ms) Completed 200 OK in 158ms (Views: 111.8ms | ActiveRecord: 9.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Started GET "/redditor/admin/pages/626/text_blocks/new?content_block%5Btemp_id%5D=1379516820697" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516820697"}, "page_id"=>"626"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "626"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 627]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 627], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (26.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (48.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (55.4ms) Completed 200 OK in 79ms (Views: 61.9ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Started PATCH "/admin/articles/627" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379516820697"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379516820697"}}, "id"=>"626"}}, "commit"=>"Submit", "id"=>"627"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "627"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 627], ["pageable_type", "Article"]] SQL (1.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00], ["page_id", 626], ["position", 0], ["updated_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 626]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 626]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 626], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 626]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.9ms) Rendered admin/articles/edit.html.haml within layouts/application (21.6ms) Completed 200 OK in 31ms (Views: 22.0ms | ActiveRecord: 2.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/628/edit" for 127.0.0.1 at 2013-09-18 19:07:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"628"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "628"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 628], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00], ["pageable_id", 628], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 627]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 627]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 627], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 627]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.5ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 3.4ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 628], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 15:07:01 UTC +00:00], ["page_id", 627], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:01 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/628/edit" for 127.0.0.1 at 2013-09-18 19:07:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"628"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "628"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 628], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 627]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 627]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 627], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 627]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Rendered admin/articles/edit.html.haml within layouts/application (16.0ms) Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 0.9ms) Started DELETE "/redditor/admin/pages/627/text_blocks/375" for 127.0.0.1 at 2013-09-18 19:07:01 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"627", "id"=>"375"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "627"]] Redditor::TextBlock Load (0.5ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 627], ["id", "375"]]  (0.2ms) begin transaction SQL (0.6ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 375]]  (2.4ms) commit transaction Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 4.9ms) Started GET "/admin/articles/628/edit" for 127.0.0.1 at 2013-09-18 19:07:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"628"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "628"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 628], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 627]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 627]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 627], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 627]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.1ms) Rendered admin/articles/edit.html.haml within layouts/application (11.1ms) Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/629/edit" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"629"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "629"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 629], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["pageable_id", 629], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 628]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 628]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 628], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 628]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.6ms) Rendered admin/articles/edit.html.haml within layouts/application (10.6ms) Completed 200 OK in 18ms (Views: 10.9ms | ActiveRecord: 3.4ms) Started GET "/redditor/admin/pages/628/text_blocks/new?content_block%5Btemp_id%5D=1379516831353" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516831353"}, "page_id"=>"628"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "628"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 629]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 629], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.2ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/629" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379516831353"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379516831353"}}, "id"=>"628"}}, "commit"=>"Submit", "id"=>"629"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "629"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 629], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 628]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 628]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 628], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 628]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.9ms) Rendered admin/articles/edit.html.haml within layouts/application (14.0ms) Completed 200 OK in 22ms (Views: 13.7ms | ActiveRecord: 1.7ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/630/edit" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"630"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "630"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 630], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["pageable_id", 630], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 629]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 629]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 629], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 629]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/629/text_blocks/new?content_block%5Btemp_id%5D=1379516831544" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516831544"}, "page_id"=>"629"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "629"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 630]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 630], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/629/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379516831544" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379516831544"}, "page_id"=>"629"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "629"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["page_id", 629], ["position", 0], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 630]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 630], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Started GET "/admin/articles/630/edit" for 127.0.0.1 at 2013-09-18 19:07:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"630"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "630"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 630], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 629]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 629]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 629], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 629]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.3ms) Completed 200 OK in 17ms (Views: 13.7ms | ActiveRecord: 0.6ms)  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["page_id", 630], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.9ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (255.7ms) Completed 200 OK in 270ms (Views: 263.9ms | ActiveRecord: 3.2ms)  (0.3ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["description", "image name 1"], ["imageable_id", 311], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["description", "image name 2"], ["imageable_id", 311], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00], ["description", "image name 3"], ["imageable_id", 311], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 630], ["position", 2], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["height", 480], ["page_id", 630], ["position", 3], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 630 [["pageable_type", "Article"], ["pageable_id", 631], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 630]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 630]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 630], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 630]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 311], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.3ms) Rendered collection (35.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.8ms) Rendered articles/show.html.haml (49.1ms)  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 631], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 4"], ["imageable_id", 312], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 5"], ["imageable_id", 312], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 6"], ["imageable_id", 312], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 631], ["position", 2], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["height", 480], ["page_id", 631], ["position", 3], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 631 [["pageable_type", "Article"], ["pageable_id", 632], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 631]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 631]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 631], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 631]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 312], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.2ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 632], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 7"], ["imageable_id", 313], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 8"], ["imageable_id", 313], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 9"], ["imageable_id", 313], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 632], ["position", 2], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["height", 480], ["page_id", 632], ["position", 3], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 632 [["pageable_type", "Article"], ["pageable_id", 633], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 632]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 632]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 632], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 632]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 313], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 633], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 633 [["pageable_type", "Article"], ["pageable_id", 634], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 633]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 633]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 633], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 633]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["height", 480], ["page_id", 634], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 634 [["pageable_type", "Article"], ["pageable_id", 635], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 634]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 634]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 634], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 634]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 635], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 10"], ["imageable_id", 314], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 11"], ["imageable_id", 314], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 12"], ["imageable_id", 314], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 635 [["pageable_type", "Article"], ["pageable_id", 636], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 635]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 635]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 635], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 635]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 314], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 636], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 13"], ["imageable_id", 315], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 14"], ["imageable_id", 315], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["description", "image name 15"], ["imageable_id", 315], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 636], ["position", 2], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["height", 480], ["page_id", 636], ["position", 3], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 636 [["pageable_type", "Article"], ["pageable_id", 637], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 636]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 636]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 636], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 636]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/638/edit" for 127.0.0.1 at 2013-09-18 19:07:12 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"638"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "638"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 638], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["pageable_id", 638], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 637]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 637]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 637], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 637]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.2ms) Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/637/video_blocks/new?content_block%5Btemp_id%5D=1379516832879" for 127.0.0.1 at 2013-09-18 19:07:12 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516832879"}, "page_id"=>"637"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "637"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 638]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 638], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (23.8ms) Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 19:07:12 +0400 Started PATCH "/admin/articles/638" for 127.0.0.1 at 2013-09-18 19:07:12 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379516832879"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379516832879"}}, "id"=>"637"}}, "commit"=>"Submit", "id"=>"638"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "638"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 638], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["page_id", 637], ["position", 0], ["updated_at", Wed, 18 Sep 2013 15:07:12 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 637]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 637]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 637], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 637]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.1ms) Completed 200 OK in 27ms (Views: 20.5ms | ActiveRecord: 1.9ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/639/edit" for 127.0.0.1 at 2013-09-18 19:07:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"639"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "639"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 639], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00], ["pageable_id", 639], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 638]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 638]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 638], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 638]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 639], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00], ["page_id", 638], ["position", 1], ["updated_at", Wed, 18 Sep 2013 15:07:13 UTC +00:00], ["youtube", "11111111111"]]  (1.1ms) commit transaction Started GET "/admin/articles/639/edit" for 127.0.0.1 at 2013-09-18 19:07:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"639"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "639"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 639], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 638]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 638]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 638], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 638]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.1ms) Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/638/video_blocks/344" for 127.0.0.1 at 2013-09-18 19:07:13 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"638", "id"=>"344"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "638"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 638], ["id", "344"]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 344]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/639/edit" for 127.0.0.1 at 2013-09-18 19:07:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"639"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "639"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 639], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 638]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 638]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 638], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 638]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.6ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/640/edit" for 127.0.0.1 at 2013-09-18 19:07:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"640"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "640"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 640], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00], ["pageable_id", 640], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 639]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 639]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 639], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 639]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/639/video_blocks/new?content_block%5Btemp_id%5D=1379516843760" for 127.0.0.1 at 2013-09-18 19:07:23 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516843760"}, "page_id"=>"639"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "639"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 640]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 640], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/640" for 127.0.0.1 at 2013-09-18 19:07:23 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379516843760"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379516843760"}}, "id"=>"639"}}, "commit"=>"Submit", "id"=>"640"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "640"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 640], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 639]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 639]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 639], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 639]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.8ms) Completed 200 OK in 23ms (Views: 17.0ms | ActiveRecord: 0.7ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/641/edit" for 127.0.0.1 at 2013-09-18 19:07:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"641"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "641"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 641], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00], ["pageable_id", 641], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 15:07:23 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 640]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 640]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 640], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 640]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 2.5ms) Started GET "/redditor/admin/pages/640/video_blocks/new?content_block%5Btemp_id%5D=1379516843975" for 127.0.0.1 at 2013-09-18 19:07:23 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379516843975"}, "page_id"=>"640"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "640"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 641]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 641], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.1ms) Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/640/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379516843975" for 127.0.0.1 at 2013-09-18 19:07:24 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379516843975"}, "page_id"=>"640"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "640"]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 15:07:24 UTC +00:00], ["page_id", 640], ["position", 0], ["updated_at", Wed, 18 Sep 2013 15:07:24 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 641]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 641], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (16.9ms) Started GET "/admin/articles/641/edit" for 127.0.0.1 at 2013-09-18 19:07:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"641"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "641"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 641], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 640]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 640]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 640], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.3ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 640]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (28.7ms) Completed 200 OK in 34ms (Views: 31.7ms | ActiveRecord: 0.9ms) Completed 200 OK in 170ms (Views: 162.6ms | ActiveRecord: 3.4ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (7.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 641], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 1"], ["imageable_id", 316], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 2"], ["imageable_id", 316], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 3"], ["imageable_id", 316], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 641], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["height", 480], ["page_id", 641], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]] SQL (1.0ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 641 [["pageable_type", "Article"], ["pageable_id", 642], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 641]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 641]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 641], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 641]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 316], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.1ms) Rendered collection (36.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (62.0ms) Rendered articles/show.html.haml (73.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 642], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 4"], ["imageable_id", 317], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 5"], ["imageable_id", 317], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 6"], ["imageable_id", 317], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 642], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["height", 480], ["page_id", 642], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 642 [["pageable_type", "Article"], ["pageable_id", 643], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 642]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 642]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 642], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 642]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 317], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 643], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 7"], ["imageable_id", 318], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 8"], ["imageable_id", 318], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["description", "image name 9"], ["imageable_id", 318], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["page_id", 643], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["height", 480], ["page_id", 643], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 643 [["pageable_type", "Article"], ["pageable_id", 644], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 643]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 643]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 643], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 643]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 318], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:17 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/645/edit" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"645"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "645"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 645], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["pageable_id", 645], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 644]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 644]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 644], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 644]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Completed 200 OK in 87ms (Views: 76.0ms | ActiveRecord: 4.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Started GET "/redditor/admin/pages/644/video_blocks/new?content_block%5Btemp_id%5D=1379527040232" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527040232"}, "page_id"=>"644"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "644"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 645]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 645], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (16.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (47.7ms) Completed 200 OK in 64ms (Views: 60.1ms | ActiveRecord: 1.2ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Started POST "/redditor/admin/pages/644/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379527040232" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527040232"}, "page_id"=>"644"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "644"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["page_id", 644], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 645]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 645], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.5ms) Started GET "/admin/articles/645/edit" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"645"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "645"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 645], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 644]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 644]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 644], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 644]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.5ms) Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.7ms) Completed 200 OK in 242ms (Views: 237.5ms | ActiveRecord: 1.7ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/646/edit" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"646"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "646"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 646], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["pageable_id", 646], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 645]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 645]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 645], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 645]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.6ms) Completed 200 OK in 20ms (Views: 12.1ms | ActiveRecord: 3.3ms) Started GET "/redditor/admin/pages/645/video_blocks/new?content_block%5Btemp_id%5D=1379527040837" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527040837"}, "page_id"=>"645"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "645"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 646]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 646], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.7ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/646" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527040837"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379527040837"}}, "id"=>"645"}}, "commit"=>"Submit", "id"=>"646"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "646"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 646], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 645]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 645]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 645], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 645]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Completed 200 OK in 23ms (Views: 16.8ms | ActiveRecord: 0.7ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/647/edit" for 127.0.0.1 at 2013-09-18 21:57:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"647"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "647"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 647], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00], ["pageable_id", 647], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 646]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 646]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 646], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 646]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 647], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:21 UTC +00:00], ["page_id", 646], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:21 UTC +00:00], ["youtube", "11111111111"]]  (1.1ms) commit transaction Started GET "/admin/articles/647/edit" for 127.0.0.1 at 2013-09-18 21:57:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"647"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "647"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 647], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 646]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 646]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 646], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 646]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.1ms) Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/646/video_blocks/350" for 127.0.0.1 at 2013-09-18 21:57:21 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"646", "id"=>"350"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "646"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 646], ["id", "350"]]  (0.1ms) begin transaction SQL (2.2ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 350]]  (1.0ms) commit transaction Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.6ms) Started GET "/admin/articles/647/edit" for 127.0.0.1 at 2013-09-18 21:57:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"647"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "647"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 647], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 646]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 646]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 646], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 646]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.6ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/648/edit" for 127.0.0.1 at 2013-09-18 21:57:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"648"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "648"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 648], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["pageable_id", 648], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 647]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 647]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 647], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 647]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Completed 200 OK in 14ms (Views: 9.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/647/video_blocks/new?content_block%5Btemp_id%5D=1379527051449" for 127.0.0.1 at 2013-09-18 21:57:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527051449"}, "page_id"=>"647"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "647"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 648]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 648], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.6ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/648" for 127.0.0.1 at 2013-09-18 21:57:31 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527051449"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527051449"}}, "id"=>"647"}}, "commit"=>"Submit", "id"=>"648"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "648"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 648], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["page_id", 647], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["youtube", "11111111111"]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 647]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 647]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 647], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 647]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.5ms) Completed 200 OK in 30ms (Views: 20.3ms | ActiveRecord: 3.7ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["page_id", 648], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 10"], ["imageable_id", 319], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 11"], ["imageable_id", 319], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 12"], ["imageable_id", 319], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["page_id", 648], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["height", 480], ["page_id", 648], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 648 [["pageable_type", "Article"], ["pageable_id", 649], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 648]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 648]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 648], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 648]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["page_id", 649], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 13"], ["imageable_id", 320], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 320], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 320], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 649 [["pageable_type", "Article"], ["pageable_id", 650], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 649]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 649]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 649], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 649]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 320], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["height", 480], ["page_id", 650], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 650 [["pageable_type", "Article"], ["pageable_id", 651], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 650]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 650]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 650], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 650]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["page_id", 651], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 651 [["pageable_type", "Article"], ["pageable_id", 652], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 651]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 651]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 651], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 651]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/653/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"653"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "653"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 653], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["pageable_id", 653], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 652]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 652]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 652], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 652]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/652/text_blocks/new?content_block%5Btemp_id%5D=1379527052098" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527052098"}, "page_id"=>"652"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "652"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 653]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 653], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (18.3ms) Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Started POST "/redditor/admin/pages/652/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379527052098" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527052098"}, "page_id"=>"652"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "652"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["page_id", 652], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 653]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 653], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.7ms) Started GET "/admin/articles/653/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"653"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "653"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 653], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 652]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 652]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 652], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 652]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.8ms) Completed 200 OK in 27ms (Views: 23.1ms | ActiveRecord: 0.9ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/654/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"654"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "654"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 654], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["pageable_id", 654], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 653]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 653]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 653], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 653]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.4ms) Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 2.1ms) Completed 200 OK in 147ms (Views: 142.6ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/653/text_blocks/new?content_block%5Btemp_id%5D=1379527052401" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527052401"}, "page_id"=>"653"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "653"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 654]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 654], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/654" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527052401"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379527052401"}}, "id"=>"653"}}, "commit"=>"Submit", "id"=>"654"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "654"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 654], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 653]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 653]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 653], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 653]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.9ms) Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 0.8ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/655/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"655"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "655"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 655], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["pageable_id", 655], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 654]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 654]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 654], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 654]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.0ms) Completed 200 OK in 17ms (Views: 10.6ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 655], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00], ["page_id", 654], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:57:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/655/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"655"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "655"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 655], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 654]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 654]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 654], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 654]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.7ms) Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 0.8ms) Started DELETE "/redditor/admin/pages/654/text_blocks/388" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"654", "id"=>"388"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "654"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 654], ["id", "388"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 388]]  (2.1ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 2.8ms) Started GET "/admin/articles/655/edit" for 127.0.0.1 at 2013-09-18 21:57:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"655"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "655"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 655], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 654]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 654]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 654], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 654]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.4ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/656/edit" for 127.0.0.1 at 2013-09-18 21:57:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"656"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "656"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 656], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00], ["pageable_id", 656], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 655]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 655]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 655], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 655]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/655/text_blocks/new?content_block%5Btemp_id%5D=1379527062887" for 127.0.0.1 at 2013-09-18 21:57:42 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527062887"}, "page_id"=>"655"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "655"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 656]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 656], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.4ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/656" for 127.0.0.1 at 2013-09-18 21:57:42 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527062887"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527062887"}}, "id"=>"655"}}, "commit"=>"Submit", "id"=>"656"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "656"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 656], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00], ["page_id", 655], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:57:42 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 655]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 655]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 655], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 655]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.7ms) Completed 200 OK in 22ms (Views: 13.8ms | ActiveRecord: 3.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:26 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/657/edit" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"657"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "657"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 657], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:28 UTC +00:00], ["pageable_id", 657], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:28 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 656]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 656]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 656], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 656]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.5ms) Rendered admin/articles/edit.html.haml within layouts/application (58.2ms) Completed 200 OK in 112ms (Views: 72.1ms | ActiveRecord: 4.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Started GET "/redditor/admin/pages/656/video_blocks/new?content_block%5Btemp_id%5D=1379527108585" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527108585"}, "page_id"=>"656"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "656"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 657]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 657], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (16.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (31.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (51.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (59.1ms) Completed 200 OK in 87ms (Views: 65.5ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Started PATCH "/admin/articles/657" for 127.0.0.1 at 2013-09-18 21:58:28 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527108585"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527108585"}}, "id"=>"656"}}, "commit"=>"Submit", "id"=>"657"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "657"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 657], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:28 UTC +00:00], ["page_id", 656], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:58:28 UTC +00:00], ["youtube", "11111111111"]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 656]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 656]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 656], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 656]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.5ms) Rendered admin/articles/edit.html.haml within layouts/application (27.8ms) Completed 200 OK in 37ms (Views: 28.2ms | ActiveRecord: 2.5ms) Article Load (2.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/658/edit" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"658"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "658"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 658], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["pageable_id", 658], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 657]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 657]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 657], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 657]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/657/video_blocks/new?content_block%5Btemp_id%5D=1379527109109" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527109109"}, "page_id"=>"657"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "657"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 658]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 658], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.3ms) Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.9ms) Started PATCH "/admin/articles/658" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527109109"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379527109109"}}, "id"=>"657"}}, "commit"=>"Submit", "id"=>"658"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "658"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 658], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 657]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 657]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 657], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 657]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.9ms) Rendered admin/articles/edit.html.haml within layouts/application (18.7ms) Completed 200 OK in 25ms (Views: 19.0ms | ActiveRecord: 0.8ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/659/edit" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"659"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "659"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 659], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["pageable_id", 659], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 658]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 658]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 658], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 658]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 659], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["page_id", 658], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:29 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/659/edit" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"659"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "659"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 659], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 658]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 658]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 658], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 658]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.2ms) Rendered admin/articles/edit.html.haml within layouts/application (18.5ms) Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.0ms) Started DELETE "/redditor/admin/pages/658/video_blocks/355" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"658", "id"=>"355"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "658"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 658], ["id", "355"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 355]]  (2.3ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/659/edit" for 127.0.0.1 at 2013-09-18 21:58:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"659"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "659"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 659], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 658]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 658]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 658], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 658]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.6ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/660/edit" for 127.0.0.1 at 2013-09-18 21:58:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"660"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "660"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 660], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["pageable_id", 660], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 659]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 659]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 659], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 659]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/659/video_blocks/new?content_block%5Btemp_id%5D=1379527119620" for 127.0.0.1 at 2013-09-18 21:58:39 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527119620"}, "page_id"=>"659"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "659"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 660]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 660], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.9ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/659/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379527119620" for 127.0.0.1 at 2013-09-18 21:58:39 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527119620"}, "page_id"=>"659"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "659"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["page_id", 659], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 660]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 660], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.3ms) Started GET "/admin/articles/660/edit" for 127.0.0.1 at 2013-09-18 21:58:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"660"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "660"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 660], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 659]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 659]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 659], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 659]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.8ms) Rendered admin/articles/edit.html.haml within layouts/application (23.8ms) Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (161.1ms) Completed 200 OK in 173ms (Views: 167.5ms | ActiveRecord: 2.0ms)  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["page_id", 660], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00], ["description", "image name 1"], ["imageable_id", 321], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:39 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 2"], ["imageable_id", 321], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 3"], ["imageable_id", 321], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 660], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["height", 480], ["page_id", 660], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 660 [["pageable_type", "Article"], ["pageable_id", 661], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 660]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 660]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 660], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 660]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 321], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.2ms) Rendered collection (35.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.4ms) Rendered articles/show.html.haml (48.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 661], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 4"], ["imageable_id", 322], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 5"], ["imageable_id", 322], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 6"], ["imageable_id", 322], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 661], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["height", 480], ["page_id", 661], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 661 [["pageable_type", "Article"], ["pageable_id", 662], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 661]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 661]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 661], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 661]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 322], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.5ms) Rendered collection (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.8ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 662], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 7"], ["imageable_id", 323], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 8"], ["imageable_id", 323], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 9"], ["imageable_id", 323], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 662], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["height", 480], ["page_id", 662], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 662 [["pageable_type", "Article"], ["pageable_id", 663], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 662]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 662]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 662], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 662]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 323], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 663], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 663 [["pageable_type", "Article"], ["pageable_id", 664], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 663]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 663]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 663], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 663]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 664], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 10"], ["imageable_id", 324], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 11"], ["imageable_id", 324], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 12"], ["imageable_id", 324], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 664 [["pageable_type", "Article"], ["pageable_id", 665], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 664]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 664]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 664], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 664]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 324], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["height", 480], ["page_id", 665], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 665 [["pageable_type", "Article"], ["pageable_id", 666], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 665]] Redditor::VideoBlock Load (0.4ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 665]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 665], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 665]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 666], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 13"], ["imageable_id", 325], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 14"], ["imageable_id", 325], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["description", "image name 15"], ["imageable_id", 325], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["page_id", 666], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["height", 480], ["page_id", 666], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 666 [["pageable_type", "Article"], ["pageable_id", 667], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 666]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 666]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 666], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 666]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/668/edit" for 127.0.0.1 at 2013-09-18 21:58:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"668"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "668"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 668], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00], ["pageable_id", 668], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:40 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 667]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 667]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 667], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 667]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/667/text_blocks/new?content_block%5Btemp_id%5D=1379527120914" for 127.0.0.1 at 2013-09-18 21:58:40 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527120914"}, "page_id"=>"667"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "667"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 668]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 668], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (18.9ms) Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 21:58:40 +0400 Started PATCH "/admin/articles/668" for 127.0.0.1 at 2013-09-18 21:58:41 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527120914"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527120914"}}, "id"=>"667"}}, "commit"=>"Submit", "id"=>"668"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "668"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 668], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00], ["page_id", 667], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 667]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 667]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 667], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 667]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.0ms) Completed 200 OK in 26ms (Views: 17.5ms | ActiveRecord: 3.0ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/669/edit" for 127.0.0.1 at 2013-09-18 21:58:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"669"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "669"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 669], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00], ["pageable_id", 669], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:41 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 668]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 668]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 668], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 668]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/668/text_blocks/new?content_block%5Btemp_id%5D=1379527121177" for 127.0.0.1 at 2013-09-18 21:58:41 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527121177"}, "page_id"=>"668"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "668"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 669]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 669], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/669" for 127.0.0.1 at 2013-09-18 21:58:41 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527121177"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379527121177"}}, "id"=>"668"}}, "commit"=>"Submit", "id"=>"669"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "669"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 669], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 668]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 668]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 668], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 668]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.4ms) Completed 200 OK in 20ms (Views: 13.0ms | ActiveRecord: 0.8ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/670/edit" for 127.0.0.1 at 2013-09-18 21:58:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"670"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "670"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 670], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00], ["pageable_id", 670], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00]]  (1.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 669]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 669]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 669], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 669]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Completed 200 OK in 15ms (Views: 9.0ms | ActiveRecord: 3.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 670], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00], ["page_id", 669], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:58:51 UTC +00:00]]  (1.4ms) commit transaction Started GET "/admin/articles/670/edit" for 127.0.0.1 at 2013-09-18 21:58:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"670"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "670"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 670], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 669]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 669]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 669], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 669]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.1ms) Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/669/text_blocks/396" for 127.0.0.1 at 2013-09-18 21:58:51 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"669", "id"=>"396"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "669"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 669], ["id", "396"]]  (0.1ms) begin transaction SQL (0.9ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 396]]  (0.9ms) commit transaction Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.3ms) Started GET "/admin/articles/670/edit" for 127.0.0.1 at 2013-09-18 21:58:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"670"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "670"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 670], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 669]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 669]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 669], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 669]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.8ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/671/edit" for 127.0.0.1 at 2013-09-18 21:59:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"671"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "671"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 671], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00], ["pageable_id", 671], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 670]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 670]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 670], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 670]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/670/text_blocks/new?content_block%5Btemp_id%5D=1379527141731" for 127.0.0.1 at 2013-09-18 21:59:01 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527141731"}, "page_id"=>"670"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "670"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 671]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 671], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.4ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/670/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379527141731" for 127.0.0.1 at 2013-09-18 21:59:01 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527141731"}, "page_id"=>"670"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "670"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00], ["page_id", 670], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:59:01 UTC +00:00]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 671]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 671], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Started GET "/admin/articles/671/edit" for 127.0.0.1 at 2013-09-18 21:59:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"671"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "671"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 671], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 670]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 670]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 670], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 670]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.5ms) Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 1.0ms) Completed in 145ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:21 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/672/edit" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"672"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "672"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 672], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:23 UTC +00:00], ["pageable_id", 672], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:23 UTC +00:00]]  (1.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 671]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 671]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 671], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 671]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (37.3ms) Rendered admin/articles/edit.html.haml within layouts/application (65.1ms) Completed 200 OK in 115ms (Views: 79.9ms | ActiveRecord: 5.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Started GET "/redditor/admin/pages/671/video_blocks/new?content_block%5Btemp_id%5D=1379527163750" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527163750"}, "page_id"=>"671"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "671"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 672]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 672], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (17.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (30.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (50.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (56.9ms) Completed 200 OK in 88ms (Views: 63.3ms | ActiveRecord: 1.8ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Started POST "/redditor/admin/pages/671/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379527163750" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527163750"}, "page_id"=>"671"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "671"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:23 UTC +00:00], ["page_id", 671], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:59:23 UTC +00:00], ["youtube", "11111111111"]]  (1.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 672]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 672], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.4ms) Started GET "/admin/articles/672/edit" for 127.0.0.1 at 2013-09-18 21:59:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"672"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "672"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 672], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 671]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 671]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 671], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 671]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.8ms) Rendered admin/articles/edit.html.haml within layouts/application (36.8ms) Completed 200 OK in 40ms (Views: 37.6ms | ActiveRecord: 0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (179.4ms) Completed 200 OK in 194ms (Views: 185.8ms | ActiveRecord: 3.0ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/673/edit" for 127.0.0.1 at 2013-09-18 21:59:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"673"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "673"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 673], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00], ["pageable_id", 673], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 672]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 672]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 672], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 672]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.5ms) Rendered admin/articles/edit.html.haml within layouts/application (10.7ms) Completed 200 OK in 17ms (Views: 10.4ms | ActiveRecord: 3.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 673], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00], ["page_id", 672], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:24 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Started GET "/admin/articles/673/edit" for 127.0.0.1 at 2013-09-18 21:59:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"673"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "673"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 673], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 672]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 672]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 672], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 672]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.5ms) Rendered admin/articles/edit.html.haml within layouts/application (20.0ms) Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 2.0ms) Started DELETE "/redditor/admin/pages/672/video_blocks/363" for 127.0.0.1 at 2013-09-18 21:59:24 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"672", "id"=>"363"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "672"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 672], ["id", "363"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 363]]  (1.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.6ms) Started GET "/admin/articles/673/edit" for 127.0.0.1 at 2013-09-18 21:59:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"673"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "673"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 673], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 672]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 672]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 672], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 672]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.6ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/674/edit" for 127.0.0.1 at 2013-09-18 21:59:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"674"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "674"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 674], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00], ["pageable_id", 674], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 673]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 673]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 673], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 673]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/673/video_blocks/new?content_block%5Btemp_id%5D=1379527174701" for 127.0.0.1 at 2013-09-18 21:59:34 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527174701"}, "page_id"=>"673"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "673"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 674]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 674], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (13.7ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/674" for 127.0.0.1 at 2013-09-18 21:59:34 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527174701"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379527174701"}}, "id"=>"673"}}, "commit"=>"Submit", "id"=>"674"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "674"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 674], ["pageable_type", "Article"]]  (0.2ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 673]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 673]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 673], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 673]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.9ms) Rendered admin/articles/edit.html.haml within layouts/application (20.9ms) Completed 200 OK in 31ms (Views: 21.5ms | ActiveRecord: 0.9ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/675/edit" for 127.0.0.1 at 2013-09-18 21:59:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"675"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "675"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 675], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00], ["pageable_id", 675], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:34 UTC +00:00]]  (8.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 674]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 674]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 674], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 674]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 22ms (Views: 9.0ms | ActiveRecord: 9.7ms) Started GET "/redditor/admin/pages/674/video_blocks/new?content_block%5Btemp_id%5D=1379527174928" for 127.0.0.1 at 2013-09-18 21:59:34 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527174928"}, "page_id"=>"674"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "674"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 675]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 675], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (13.7ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/675" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527174928"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527174928"}}, "id"=>"674"}}, "commit"=>"Submit", "id"=>"675"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "675"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 675], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["page_id", 674], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["youtube", "11111111111"]]  (1.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 674]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 674]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 674], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 674]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.6ms) Rendered admin/articles/edit.html.haml within layouts/application (18.3ms) Completed 200 OK in 28ms (Views: 18.9ms | ActiveRecord: 3.1ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/676/edit" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"676"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "676"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 676], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (4.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["pageable_id", 676], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (5.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 675]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 675]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 675], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 675]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (42.5ms) Rendered admin/articles/edit.html.haml within layouts/application (45.2ms) Completed 200 OK in 60ms (Views: 45.6ms | ActiveRecord: 10.6ms) Started GET "/redditor/admin/pages/675/text_blocks/new?content_block%5Btemp_id%5D=1379527175331" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527175331"}, "page_id"=>"675"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "675"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 676]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 676], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (19.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (19.8ms) Completed 200 OK in 41ms (Views: 20.3ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Started POST "/redditor/admin/pages/675/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379527175331" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527175331"}, "page_id"=>"675"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "675"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["page_id", 675], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (2.0ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 676]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 676], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.1ms) Started GET "/admin/articles/676/edit" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"676"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "676"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 676], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 675]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 675]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 675], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 675]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.6ms) Rendered admin/articles/edit.html.haml within layouts/application (23.0ms) Completed 200 OK in 27ms (Views: 23.6ms | ActiveRecord: 1.1ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/677/edit" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"677"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "677"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 677], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["pageable_id", 677], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 676]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 676]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 676], ["imageable_type", "Redditor::Page"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (150.1ms) Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 676]] Completed 200 OK in 161ms (Views: 151.1ms | ActiveRecord: 3.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.9ms) Rendered admin/articles/edit.html.haml within layouts/application (12.0ms) Completed 200 OK in 19ms (Views: 12.3ms | ActiveRecord: 2.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 677], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00], ["page_id", 676], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:35 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/677/edit" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"677"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "677"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 677], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 676]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 676]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 676], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 676]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.2ms) Rendered admin/articles/edit.html.haml within layouts/application (16.7ms) Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.9ms) Started DELETE "/redditor/admin/pages/676/text_blocks/399" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"676", "id"=>"399"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "676"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 676], ["id", "399"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 399]]  (1.9ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.7ms) Started GET "/admin/articles/677/edit" for 127.0.0.1 at 2013-09-18 21:59:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"677"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "677"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 677], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 676]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 676]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 676], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 676]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms) Article Load (3.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:45 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/678/edit" for 127.0.0.1 at 2013-09-18 21:59:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"678"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "678"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 678], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:45 UTC +00:00], ["pageable_id", 678], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:45 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 677]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 677]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 677], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 677]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.3ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 2.8ms) Started GET "/redditor/admin/pages/677/text_blocks/new?content_block%5Btemp_id%5D=1379527185970" for 127.0.0.1 at 2013-09-18 21:59:45 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527185970"}, "page_id"=>"677"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "677"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 678]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 678], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.0ms) Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/678" for 127.0.0.1 at 2013-09-18 21:59:46 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527185970"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379527185970"}}, "id"=>"677"}}, "commit"=>"Submit", "id"=>"678"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "678"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 678], ["pageable_type", "Article"]]  (0.2ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 677]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 677]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 677], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 677]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.2ms) Rendered admin/articles/edit.html.haml within layouts/application (16.5ms) Completed 200 OK in 28ms (Views: 17.2ms | ActiveRecord: 1.1ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/679/edit" for 127.0.0.1 at 2013-09-18 21:59:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"679"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "679"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 679], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["pageable_id", 679], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 678]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 678]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 678], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 678]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/678/text_blocks/new?content_block%5Btemp_id%5D=1379527186193" for 127.0.0.1 at 2013-09-18 21:59:46 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527186193"}, "page_id"=>"678"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "678"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 679]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 679], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.4ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/679" for 127.0.0.1 at 2013-09-18 21:59:46 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527186193"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527186193"}}, "id"=>"678"}}, "commit"=>"Submit", "id"=>"679"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "679"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 679], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 678], ["position", 0], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 678]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 678]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 678], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 678]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.0ms) Rendered admin/articles/edit.html.haml within layouts/application (15.1ms) Completed 200 OK in 24ms (Views: 15.4ms | ActiveRecord: 3.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 679], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 1"], ["imageable_id", 326], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 2"], ["imageable_id", 326], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (7.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 3"], ["imageable_id", 326], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 679], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["height", 480], ["page_id", 679], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 679 [["pageable_type", "Article"], ["pageable_id", 680], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 679]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 679]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 679], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 679]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["height", 480], ["page_id", 680], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 680 [["pageable_type", "Article"], ["pageable_id", 681], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 680]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 680]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 680], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 680]]  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 681], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 4"], ["imageable_id", 327], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 5"], ["imageable_id", 327], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 6"], ["imageable_id", 327], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 681 [["pageable_type", "Article"], ["pageable_id", 682], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 681]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 681]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 681], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 681]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 327], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 682], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 682 [["pageable_type", "Article"], ["pageable_id", 683], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 682]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 682]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 682], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 682]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 683], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 328], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 328], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 328], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 683], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["height", 480], ["page_id", 683], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 683 [["pageable_type", "Article"], ["pageable_id", 684], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 683]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 683]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 683], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 683]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 328], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (34.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.3ms) Rendered articles/show.html.haml (48.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00], ["page_id", 684], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 10"], ["imageable_id", 329], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 11"], ["imageable_id", 329], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 12"], ["imageable_id", 329], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["page_id", 684], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["height", 480], ["page_id", 684], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 684 [["pageable_type", "Article"], ["pageable_id", 685], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 684]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 684]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 684], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 684]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 329], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["page_id", 685], ["position", 1], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 13"], ["imageable_id", 330], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 14"], ["imageable_id", 330], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["description", "image name 15"], ["imageable_id", 330], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["page_id", 685], ["position", 2], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["height", 480], ["page_id", 685], ["position", 3], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 685 [["pageable_type", "Article"], ["pageable_id", 686], ["updated_at", Wed, 18 Sep 2013 17:59:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 685]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 685]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 685], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 685]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 330], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.5ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:00:49 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/687/edit" for 127.0.0.1 at 2013-09-18 22:00:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"687"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "687"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 687], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:50 UTC +00:00], ["pageable_id", 687], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:00:50 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 686]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 686]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 686], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 686]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.4ms) Rendered admin/articles/edit.html.haml within layouts/application (57.1ms) Completed 200 OK in 106ms (Views: 70.4ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 22:00:50 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 22:00:50 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 22:00:50 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 22:00:50 +0400 Started GET "/redditor/admin/pages/686/video_blocks/new?content_block%5Btemp_id%5D=1379527251069" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527251069"}, "page_id"=>"686"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "686"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 687]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 687], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (15.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (47.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (54.1ms) Completed 200 OK in 82ms (Views: 61.3ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Started PATCH "/admin/articles/687" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527251069"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527251069"}}, "id"=>"686"}}, "commit"=>"Submit", "id"=>"687"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "687"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 687], ["pageable_type", "Article"]] SQL (2.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["page_id", 686], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["youtube", "11111111111"]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 686]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 686]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 686], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 686]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.9ms) Rendered admin/articles/edit.html.haml within layouts/application (28.1ms) Completed 200 OK in 40ms (Views: 27.7ms | ActiveRecord: 5.4ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00]]  (1.1ms) commit transaction Started GET "/admin/articles/688/edit" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"688"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "688"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 688], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["pageable_id", 688], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 687]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 687]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 687], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 687]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 688], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["page_id", 687], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:00:51 UTC +00:00], ["youtube", "11111111111"]]  (1.2ms) commit transaction Started GET "/admin/articles/688/edit" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"688"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "688"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 688], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 687]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 687]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 687], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 687]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.2ms) Rendered admin/articles/edit.html.haml within layouts/application (15.4ms) Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/687/video_blocks/371" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"687", "id"=>"371"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "687"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 687], ["id", "371"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 371]]  (2.3ms) commit transaction Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 3.6ms) Started GET "/admin/articles/688/edit" for 127.0.0.1 at 2013-09-18 22:00:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"688"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "688"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 688], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 687]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 687]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 687], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 687]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.7ms) Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:01 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/689/edit" for 127.0.0.1 at 2013-09-18 22:01:01 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"689"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "689"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 689], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:01 UTC +00:00], ["pageable_id", 689], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:01 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 688]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 688]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 688], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 688]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.1ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.6ms) Started GET "/redditor/admin/pages/688/video_blocks/new?content_block%5Btemp_id%5D=1379527261943" for 127.0.0.1 at 2013-09-18 22:01:01 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527261943"}, "page_id"=>"688"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "688"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 689]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 689], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.3ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/688/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379527261943" for 127.0.0.1 at 2013-09-18 22:01:02 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527261943"}, "page_id"=>"688"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "688"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["page_id", 688], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["youtube", "11111111111"]]  (1.4ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 689]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 689], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.4ms) Started GET "/admin/articles/689/edit" for 127.0.0.1 at 2013-09-18 22:01:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"689"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "689"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 689], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 688]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 688]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 688], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 688]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.7ms) Rendered admin/articles/edit.html.haml within layouts/application (20.5ms) Completed 200 OK in 25ms (Views: 21.2ms | ActiveRecord: 0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (137.3ms) Completed 200 OK in 149ms (Views: 144.0ms | ActiveRecord: 2.4ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/690/edit" for 127.0.0.1 at 2013-09-18 22:01:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"690"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "690"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 690], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["pageable_id", 690], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 689]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 689]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 689], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 689]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/689/video_blocks/new?content_block%5Btemp_id%5D=1379527262477" for 127.0.0.1 at 2013-09-18 22:01:02 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527262477"}, "page_id"=>"689"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "689"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 690]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 690], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (14.3ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/690" for 127.0.0.1 at 2013-09-18 22:01:02 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527262477"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379527262477"}}, "id"=>"689"}}, "commit"=>"Submit", "id"=>"690"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "690"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 690], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 689]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 689]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 689], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 689]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.8ms) Rendered admin/articles/edit.html.haml within layouts/application (16.8ms) Completed 200 OK in 25ms (Views: 17.2ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["page_id", 690], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["description", "image name 1"], ["imageable_id", 331], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["description", "image name 2"], ["imageable_id", 331], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["description", "image name 3"], ["imageable_id", 331], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["page_id", 690], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["height", 480], ["page_id", 690], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 690 [["pageable_type", "Article"], ["pageable_id", 691], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 690]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 690]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 690], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 690]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 331], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (35.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.3ms) Rendered articles/show.html.haml (50.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (1.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["page_id", 691], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00], ["description", "image name 4"], ["imageable_id", 332], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:02 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 5"], ["imageable_id", 332], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 6"], ["imageable_id", 332], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 691], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["height", 480], ["page_id", 691], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 691 [["pageable_type", "Article"], ["pageable_id", 692], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 691]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 691]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 691], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 691]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 332], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 692], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 7"], ["imageable_id", 333], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 8"], ["imageable_id", 333], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 9"], ["imageable_id", 333], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 692], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["height", 480], ["page_id", 692], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 692 [["pageable_type", "Article"], ["pageable_id", 693], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 692]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 692]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 692], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 692]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 333], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 693], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 693 [["pageable_type", "Article"], ["pageable_id", 694], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 693]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 693]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 693], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 693]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["height", 480], ["page_id", 694], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 694 [["pageable_type", "Article"], ["pageable_id", 695], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 694]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 694]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 694], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 694]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 695], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 10"], ["imageable_id", 334], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 11"], ["imageable_id", 334], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 12"], ["imageable_id", 334], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 695], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["height", 480], ["page_id", 695], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 695 [["pageable_type", "Article"], ["pageable_id", 696], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 695]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 695]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 695], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 695]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 696], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 13"], ["imageable_id", 335], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 14"], ["imageable_id", 335], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["description", "image name 15"], ["imageable_id", 335], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 696 [["pageable_type", "Article"], ["pageable_id", 697], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 696]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 696]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 696], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 696]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 335], ["imageable_type", "Redditor::SliderBlock"]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/698/edit" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"698"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "698"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 698], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["pageable_id", 698], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 697]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 697]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 697], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 697]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/697/text_blocks/new?content_block%5Btemp_id%5D=1379527263645" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527263645"}, "page_id"=>"697"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "697"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 698]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 698], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (18.4ms) Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Started PATCH "/admin/articles/698" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527263645"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527263645"}}, "id"=>"697"}}, "commit"=>"Submit", "id"=>"698"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "698"]]  (0.2ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 698], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 697], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 697]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 697]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 697], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 697]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.2ms) Completed 200 OK in 22ms (Views: 16.2ms | ActiveRecord: 2.1ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/699/edit" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"699"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "699"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 699], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["pageable_id", 699], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 698]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 698]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 698], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 698]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 699], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00], ["page_id", 698], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:01:03 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/699/edit" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"699"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "699"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 699], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 698]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 698]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 698], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 698]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.7ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/698/text_blocks/412" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"698", "id"=>"412"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "698"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 698], ["id", "412"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 412]]  (1.0ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/699/edit" for 127.0.0.1 at 2013-09-18 22:01:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"699"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "699"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 699], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 698]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 698]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 698], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 698]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.6ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/700/edit" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"700"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "700"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 700], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00], ["pageable_id", 700], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 699]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 699]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 699], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 699]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/699/text_blocks/new?content_block%5Btemp_id%5D=1379527274192" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527274192"}, "page_id"=>"699"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "699"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 700]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 700], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.6ms) Started POST "/redditor/admin/pages/699/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379527274192" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527274192"}, "page_id"=>"699"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "699"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00], ["page_id", 699], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 700]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 700], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Started GET "/admin/articles/700/edit" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"700"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "700"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 700], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 699]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 699]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 699], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 699]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.9ms) Completed 200 OK in 21ms (Views: 17.5ms | ActiveRecord: 0.8ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/701/edit" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"701"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "701"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 701], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00], ["pageable_id", 701], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:01:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 700]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 700]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 700], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 700]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 1.8ms) Completed 200 OK in 140ms (Views: 133.5ms | ActiveRecord: 3.2ms) Started GET "/redditor/admin/pages/700/text_blocks/new?content_block%5Btemp_id%5D=1379527274427" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527274427"}, "page_id"=>"700"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "700"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 701]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 701], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.6ms) Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/701" for 127.0.0.1 at 2013-09-18 22:01:14 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527274427"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379527274427"}}, "id"=>"700"}}, "commit"=>"Submit", "id"=>"701"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "701"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 701], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 700]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 700]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 700], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 700]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.6ms) Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 0.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (11.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:22 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/702/edit" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"702"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "702"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 702], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:24 UTC +00:00], ["pageable_id", 702], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:24 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 701]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 701]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 701], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 701]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.6ms) Rendered admin/articles/edit.html.haml within layouts/application (57.4ms) Completed 200 OK in 103ms (Views: 71.8ms | ActiveRecord: 4.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Started GET "/redditor/admin/pages/701/text_blocks/new?content_block%5Btemp_id%5D=1379527944808" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527944808"}, "page_id"=>"701"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "701"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 702]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 702], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.4ms) Completed 200 OK in 75ms (Views: 57.7ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Started POST "/redditor/admin/pages/701/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379527944808" for 127.0.0.1 at 2013-09-18 22:12:24 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527944808"}, "page_id"=>"701"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "701"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:12:24 UTC +00:00], ["page_id", 701], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:12:24 UTC +00:00]]  (2.1ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 702]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 702], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.0ms) Started GET "/admin/articles/702/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"702"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "702"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 702], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 701]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 701]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 701], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 701]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (27.1ms) Rendered admin/articles/edit.html.haml within layouts/application (31.1ms) Completed 200 OK in 35ms (Views: 31.7ms | ActiveRecord: 0.8ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/703/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"703"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "703"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 703], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["pageable_id", 703], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 702]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 702]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 702], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 702]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.5ms) Rendered admin/articles/edit.html.haml within layouts/application (10.4ms) Completed 200 OK in 17ms (Views: 10.1ms | ActiveRecord: 3.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (163.3ms) Completed 200 OK in 177ms (Views: 169.6ms | ActiveRecord: 3.1ms) Started GET "/redditor/admin/pages/702/text_blocks/new?content_block%5Btemp_id%5D=1379527945189" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527945189"}, "page_id"=>"702"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "702"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 703]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 703], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (12.1ms) Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/703" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527945189"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379527945189"}}, "id"=>"702"}}, "commit"=>"Submit", "id"=>"703"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "703"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 703], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["page_id", 702], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 702]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 702]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 702], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 702]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.1ms) Rendered admin/articles/edit.html.haml within layouts/application (17.4ms) Completed 200 OK in 27ms (Views: 17.0ms | ActiveRecord: 4.4ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/704/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"704"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "704"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 704], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["pageable_id", 704], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 703]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 703]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 703], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 703]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (8.1ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/703/text_blocks/new?content_block%5Btemp_id%5D=1379527945392" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527945392"}, "page_id"=>"703"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "703"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 704]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 704], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/704" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379527945392"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379527945392"}}, "id"=>"703"}}, "commit"=>"Submit", "id"=>"704"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "704"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 704], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 703]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 703]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 703], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 703]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.1ms) Rendered admin/articles/edit.html.haml within layouts/application (12.2ms) Completed 200 OK in 20ms (Views: 12.6ms | ActiveRecord: 0.7ms) Article Load (1.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/705/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"705"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "705"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 705], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["pageable_id", 705], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 704]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 704]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 704], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 704]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 705], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00], ["page_id", 704], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:25 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/705/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"705"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "705"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 705], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 704]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 704]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 704], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 704]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.1ms) Rendered admin/articles/edit.html.haml within layouts/application (13.2ms) Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/704/text_blocks/416" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"704", "id"=>"416"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "704"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 704], ["id", "416"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 416]]  (0.7ms) commit transaction Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/705/edit" for 127.0.0.1 at 2013-09-18 22:12:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"705"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "705"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 705], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 704]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 704]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 704], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 704]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.7ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["page_id", 705], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["description", "image name 1"], ["imageable_id", 336], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["description", "image name 2"], ["imageable_id", 336], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["description", "image name 3"], ["imageable_id", 336], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["page_id", 705], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["height", 480], ["page_id", 705], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 705 [["pageable_type", "Article"], ["pageable_id", 706], ["updated_at", Wed, 18 Sep 2013 18:12:45 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 705]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 705]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 705], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 705]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 336], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (36.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (42.5ms) Rendered articles/show.html.haml (49.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 706], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 4"], ["imageable_id", 337], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 5"], ["imageable_id", 337], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 6"], ["imageable_id", 337], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 706], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["height", 480], ["page_id", 706], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 706 [["pageable_type", "Article"], ["pageable_id", 707], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 706]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 706]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 706], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 706]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 337], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.6ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 707], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 338], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 338], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 338], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 707], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["height", 480], ["page_id", 707], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 707 [["pageable_type", "Article"], ["pageable_id", 708], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 707]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 707]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 707], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 707]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 338], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.0ms) Rendered collection (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.1ms)  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 708], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 10"], ["imageable_id", 339], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 11"], ["imageable_id", 339], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 12"], ["imageable_id", 339], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 708], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["height", 480], ["page_id", 708], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 708 [["pageable_type", "Article"], ["pageable_id", 709], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 708]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 708]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 708], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 708]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 709], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 709 [["pageable_type", "Article"], ["pageable_id", 710], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 709]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 709]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 709], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 709]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 710], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 13"], ["imageable_id", 340], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 14"], ["imageable_id", 340], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["description", "image name 15"], ["imageable_id", 340], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 710 [["pageable_type", "Article"], ["pageable_id", 711], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 710]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 710]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 710], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 710]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 340], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["height", 480], ["page_id", 711], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 711 [["pageable_type", "Article"], ["pageable_id", 712], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 711]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 711]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 711], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 711]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/713/edit" for 127.0.0.1 at 2013-09-18 22:12:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"713"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "713"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 713], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["pageable_id", 713], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 712]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 712]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 712], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 712]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/712/video_blocks/new?content_block%5Btemp_id%5D=1379527966752" for 127.0.0.1 at 2013-09-18 22:12:46 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527966752"}, "page_id"=>"712"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "712"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 713]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 713], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (20.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (22.9ms) Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 22:12:46 +0400 Started POST "/redditor/admin/pages/712/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379527966752" for 127.0.0.1 at 2013-09-18 22:12:46 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527966752"}, "page_id"=>"712"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "712"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["page_id", 712], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:12:46 UTC +00:00], ["youtube", "11111111111"]]  (2.0ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 713]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 713], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.7ms) Started GET "/admin/articles/713/edit" for 127.0.0.1 at 2013-09-18 22:12:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"713"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "713"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 713], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 712]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 712]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 712], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 712]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (22.2ms) Completed 200 OK in 30ms (Views: 26.0ms | ActiveRecord: 1.0ms) Completed 200 OK in 146ms (Views: 139.9ms | ActiveRecord: 2.8ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/714/edit" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"714"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "714"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 714], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["pageable_id", 714], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 713]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 713]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 713], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 713]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/713/video_blocks/new?content_block%5Btemp_id%5D=1379527967282" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527967282"}, "page_id"=>"713"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "713"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 714]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 714], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (14.7ms) Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/714" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527967282"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379527967282"}}, "id"=>"713"}}, "commit"=>"Submit", "id"=>"714"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "714"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 714], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["page_id", 713], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["youtube", "11111111111"]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 713]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 713]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 713], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 713]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.2ms) Completed 200 OK in 25ms (Views: 17.0ms | ActiveRecord: 3.4ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/715/edit" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"715"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "715"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 715], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["pageable_id", 715], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 714]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 714]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 714], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 714]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.1ms) Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 2.4ms) Started GET "/redditor/admin/pages/714/video_blocks/new?content_block%5Btemp_id%5D=1379527967619" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379527967619"}, "page_id"=>"714"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "714"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 715]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 715], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/715" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379527967619"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379527967619"}}, "id"=>"714"}}, "commit"=>"Submit", "id"=>"715"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "715"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 715], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 714]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 714]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 714], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 714]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 0.7ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/716/edit" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"716"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "716"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 716], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["pageable_id", 716], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 715]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 715]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 715], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 715]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 716], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["page_id", 715], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:12:47 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/716/edit" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"716"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "716"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 716], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 715]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 715]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 715], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 715]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.7ms) Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/715/video_blocks/385" for 127.0.0.1 at 2013-09-18 22:12:47 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"715", "id"=>"385"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "715"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 715], ["id", "385"]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 385]]  (2.5ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.5ms) Started GET "/admin/articles/716/edit" for 127.0.0.1 at 2013-09-18 22:12:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"716"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "716"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 716], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 715]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 715]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 715], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 715]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (4.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:16 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 716], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 1"], ["imageable_id", 341], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 2"], ["imageable_id", 341], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 3"], ["imageable_id", 341], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 716], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["height", 480], ["page_id", 716], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]] SQL (1.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 716 [["pageable_type", "Article"], ["pageable_id", 717], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 716]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 716]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 716], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 716]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 341], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (33.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (60.3ms) Rendered articles/show.html.haml (70.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 717], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 4"], ["imageable_id", 342], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 5"], ["imageable_id", 342], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 6"], ["imageable_id", 342], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 717], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["height", 480], ["page_id", 717], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 717 [["pageable_type", "Article"], ["pageable_id", 718], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 717]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 717]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 717], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 717]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 342], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 718], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 7"], ["imageable_id", 343], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 8"], ["imageable_id", 343], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["description", "image name 9"], ["imageable_id", 343], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["page_id", 718], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["height", 480], ["page_id", 718], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 718 [["pageable_type", "Article"], ["pageable_id", 719], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 718]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 718]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 718], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 718]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 343], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.1ms) Rendered collection (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:17 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/720/edit" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"720"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "720"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 720], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:20 UTC +00:00], ["pageable_id", 720], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:20 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 719]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 719]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 719], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 719]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.1ms) Completed 200 OK in 98ms (Views: 87.4ms | ActiveRecord: 4.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Started GET "/redditor/admin/pages/719/text_blocks/new?content_block%5Btemp_id%5D=1379528000646" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528000646"}, "page_id"=>"719"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "719"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 720]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 720], ["pageable_type", "Article"]] Started PATCH "/admin/articles/720" for 127.0.0.1 at 2013-09-18 22:13:20 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"719"}}, "commit"=>"Submit", "id"=>"720"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "720"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 720], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 719]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 719]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 719], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 719]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.9ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (27.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (43.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (66.9ms) Completed 200 OK in 85ms (Views: 80.6ms | ActiveRecord: 1.3ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/721/edit" for 127.0.0.1 at 2013-09-18 22:13:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"721"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "721"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 721], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00], ["pageable_id", 721], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 720]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 720]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 720], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 720]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 2.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 721], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00], ["page_id", 720], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:22 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/721/edit" for 127.0.0.1 at 2013-09-18 22:13:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"721"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "721"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 721], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 720]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 720]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 720], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 720]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.7ms) Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 22:13:22 +0400 Started DELETE "/redditor/admin/pages/720/text_blocks/425" for 127.0.0.1 at 2013-09-18 22:13:23 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"720", "id"=>"425"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "720"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 720], ["id", "425"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 425]]  (0.7ms) commit transaction Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/721/edit" for 127.0.0.1 at 2013-09-18 22:13:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"721"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "721"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 721], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 720]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 720]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 720], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 720]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/722/edit" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"722"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "722"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 722], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["pageable_id", 722], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 721]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 721]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 721], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 721]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/721/text_blocks/new?content_block%5Btemp_id%5D=1379528005173" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528005173"}, "page_id"=>"721"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "721"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 722]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 722], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.7ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/722" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379528005173"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379528005173"}}, "id"=>"721"}}, "commit"=>"Submit", "id"=>"722"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "722"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 722], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["page_id", 721], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 721]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 721]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 721], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 721]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.0ms) Completed 200 OK in 55ms (Views: 46.6ms | ActiveRecord: 3.1ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/723/edit" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"723"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "723"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 723], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["pageable_id", 723], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 722]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 722]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 722], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 722]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Completed 200 OK in 16ms (Views: 9.5ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/722/text_blocks/new?content_block%5Btemp_id%5D=1379528005418" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528005418"}, "page_id"=>"722"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "722"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 723]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 723], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.5ms) Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.6ms) Started POST "/redditor/admin/pages/722/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379528005418" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379528005418"}, "page_id"=>"722"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "722"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["page_id", 722], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.1ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 723]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 723], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Started GET "/admin/articles/723/edit" for 127.0.0.1 at 2013-09-18 22:13:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"723"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "723"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 723], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 722]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 722]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 722], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 722]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.2ms) Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.9ms)  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["page_id", 723], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["description", "image name 10"], ["imageable_id", 344], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 344], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]] Completed 200 OK in 266ms (Views: 260.2ms | ActiveRecord: 2.4ms)  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["description", "image name 12"], ["imageable_id", 344], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 723 [["pageable_type", "Article"], ["pageable_id", 724], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 723]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 723]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 723], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 723]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 344], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["height", 480], ["page_id", 724], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 724 [["pageable_type", "Article"], ["pageable_id", 725], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 724]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 724]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 724], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 724]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["page_id", 725], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 725 [["pageable_type", "Article"], ["pageable_id", 726], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 725]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 725]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 725], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 725]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["page_id", 726], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["description", "image name 13"], ["imageable_id", 345], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00], ["description", "image name 14"], ["imageable_id", 345], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["description", "image name 15"], ["imageable_id", 345], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["page_id", 726], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["height", 480], ["page_id", 726], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 726 [["pageable_type", "Article"], ["pageable_id", 727], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 726]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 726]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 726], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 726]] Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/728/edit" for 127.0.0.1 at 2013-09-18 22:13:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"728"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "728"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 728], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00], ["pageable_id", 728], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:26 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 727]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 727]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 727], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 727]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.5ms) Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 2.6ms) Started GET "/redditor/admin/pages/727/video_blocks/new?content_block%5Btemp_id%5D=1379528006144" for 127.0.0.1 at 2013-09-18 22:13:26 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528006144"}, "page_id"=>"727"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "727"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 728]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 728], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (12.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (28.6ms) Completed 200 OK in 33ms (Views: 29.4ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/728" for 127.0.0.1 at 2013-09-18 22:13:26 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"727"}}, "commit"=>"Submit", "id"=>"728"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "728"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 728], ["pageable_type", "Article"]]  (0.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 727]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 727]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 727], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 727]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 1.0ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/729/edit" for 127.0.0.1 at 2013-09-18 22:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"729"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "729"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 729], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00], ["pageable_id", 729], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 728]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 728]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 728], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 728]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 729], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00], ["page_id", 728], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:13:28 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/729/edit" for 127.0.0.1 at 2013-09-18 22:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"729"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "729"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 729], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 728]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 728]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 728], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 728]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.1ms) Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 22:13:28 +0400 Started DELETE "/redditor/admin/pages/728/video_blocks/391" for 127.0.0.1 at 2013-09-18 22:13:28 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"728", "id"=>"391"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "728"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 728], ["id", "391"]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 391]]  (1.0ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.3ms) Started GET "/admin/articles/729/edit" for 127.0.0.1 at 2013-09-18 22:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"729"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "729"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 729], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 728]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 728]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 728], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 728]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.7ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/730/edit" for 127.0.0.1 at 2013-09-18 22:13:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"730"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "730"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 730], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00], ["pageable_id", 730], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 729]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 729]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 729], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 729]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/729/video_blocks/new?content_block%5Btemp_id%5D=1379528010791" for 127.0.0.1 at 2013-09-18 22:13:30 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528010791"}, "page_id"=>"729"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "729"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 730]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 730], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.4ms) Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/730" for 127.0.0.1 at 2013-09-18 22:13:30 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379528010791"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379528010791"}}, "id"=>"729"}}, "commit"=>"Submit", "id"=>"730"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "730"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 730], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00], ["page_id", 729], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:13:30 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 729]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 729]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 729], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 729]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.5ms) Completed 200 OK in 26ms (Views: 19.3ms | ActiveRecord: 1.9ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/731/edit" for 127.0.0.1 at 2013-09-18 22:13:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"731"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "731"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 731], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00], ["pageable_id", 731], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 730]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 730]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 730], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 730]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/730/video_blocks/new?content_block%5Btemp_id%5D=1379528011077" for 127.0.0.1 at 2013-09-18 22:13:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528011077"}, "page_id"=>"730"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "730"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 731]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 731], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.0ms) Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/730/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379528011077" for 127.0.0.1 at 2013-09-18 22:13:31 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379528011077"}, "page_id"=>"730"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "730"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00], ["page_id", 730], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:13:31 UTC +00:00], ["youtube", "11111111111"]]  (2.0ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 731]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 731], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.6ms) Started GET "/admin/articles/731/edit" for 127.0.0.1 at 2013-09-18 22:13:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"731"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "731"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 731], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 730]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 730]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 730], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 730]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (22.2ms) Completed 200 OK in 30ms (Views: 26.6ms | ActiveRecord: 0.9ms) Completed 200 OK in 145ms (Views: 138.8ms | ActiveRecord: 2.9ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:07 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/732/edit" for 127.0.0.1 at 2013-09-18 22:14:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"732"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "732"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 732], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:08 UTC +00:00], ["pageable_id", 732], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:08 UTC +00:00]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 731]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 731]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 731], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 731]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.2ms) Rendered admin/articles/edit.html.haml within layouts/application (57.4ms) Completed 200 OK in 104ms (Views: 71.1ms | ActiveRecord: 5.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Started GET "/redditor/admin/pages/731/text_blocks/new?content_block%5Btemp_id%5D=1379528049121" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528049121"}, "page_id"=>"731"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "731"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 732]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 732], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (42.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (49.3ms) Completed 200 OK in 72ms (Views: 55.4ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Started PATCH "/admin/articles/732" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379528049121"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379528049121"}}, "id"=>"731"}}, "commit"=>"Submit", "id"=>"732"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "732"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 732], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["page_id", 731], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 731]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 731]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 731], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 731]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.6ms) Rendered admin/articles/edit.html.haml within layouts/application (22.4ms) Completed 200 OK in 33ms (Views: 22.8ms | ActiveRecord: 3.5ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/733/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"733"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "733"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 733], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["pageable_id", 733], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 732]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 732]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 732], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 732]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Rendered admin/articles/edit.html.haml within layouts/application (8.9ms) Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/732/text_blocks/new?content_block%5Btemp_id%5D=1379528049433" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528049433"}, "page_id"=>"732"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "732"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 733]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 733], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (7.5ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.7ms) Started POST "/redditor/admin/pages/732/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379528049433" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379528049433"}, "page_id"=>"732"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "732"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["page_id", 732], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (2.0ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 733]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 733], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.2ms) Started GET "/admin/articles/733/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"733"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "733"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 733], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 732]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 732]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 732], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 732]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.7ms) Rendered admin/articles/edit.html.haml within layouts/application (22.1ms) Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 1.5ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/734/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"734"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "734"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 734], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["pageable_id", 734], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 733]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 733]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 733], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 733]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.2ms) Rendered admin/articles/edit.html.haml within layouts/application (14.4ms) Completed 200 OK in 22ms (Views: 13.9ms | ActiveRecord: 3.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (152.8ms) Completed 200 OK in 165ms (Views: 159.0ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/733/text_blocks/new?content_block%5Btemp_id%5D=1379528049673" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528049673"}, "page_id"=>"733"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "733"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 734]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 734], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.4ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/734" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379528049673"=>{"position"=>"0", "body"=>"", "temp_id"=>"1379528049673"}}, "id"=>"733"}}, "commit"=>"Submit", "id"=>"734"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "734"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 734], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 733]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 733]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 733], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 733]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.0ms) Rendered admin/articles/edit.html.haml within layouts/application (13.0ms) Completed 200 OK in 22ms (Views: 13.4ms | ActiveRecord: 0.9ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/735/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"735"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "735"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 735], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["pageable_id", 735], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 734]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 734]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 734], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 734]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 2.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 735], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00], ["page_id", 734], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:09 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/735/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"735"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "735"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 735], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 734]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 734]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 734], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 734]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.1ms) Rendered admin/articles/edit.html.haml within layouts/application (17.3ms) Completed 200 OK in 21ms (Views: 17.8ms | ActiveRecord: 0.9ms) Started DELETE "/redditor/admin/pages/734/text_blocks/432" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"734", "id"=>"432"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "734"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 734], ["id", "432"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 432]]  (0.9ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.6ms) Started GET "/admin/articles/735/edit" for 127.0.0.1 at 2013-09-18 22:14:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"735"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "735"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 735], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 734]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 734]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 734], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 734]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.7ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["page_id", 735], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 735 [["pageable_type", "Article"], ["pageable_id", 736], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 735]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 735]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 735], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 735]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["page_id", 736], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 1"], ["imageable_id", 346], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 2"], ["imageable_id", 346], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 3"], ["imageable_id", 346], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["page_id", 736], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["height", 480], ["page_id", 736], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 736 [["pageable_type", "Article"], ["pageable_id", 737], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 736]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 736]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 736], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 736]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["page_id", 737], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 4"], ["imageable_id", 347], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 5"], ["imageable_id", 347], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["description", "image name 6"], ["imageable_id", 347], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 737 [["pageable_type", "Article"], ["pageable_id", 738], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 737]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 737]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 737], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 737]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 347], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["height", 480], ["page_id", 738], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 738 [["pageable_type", "Article"], ["pageable_id", 739], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 738]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 738]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 738], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 738]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/740/edit" for 127.0.0.1 at 2013-09-18 22:14:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"740"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "740"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 740], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["pageable_id", 740], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 739]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 739]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 739], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 739]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.2ms) Rendered admin/articles/edit.html.haml within layouts/application (10.2ms) Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/739/video_blocks/new?content_block%5Btemp_id%5D=1379528060575" for 127.0.0.1 at 2013-09-18 22:14:20 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528060575"}, "page_id"=>"739"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "739"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 740]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 740], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (11.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (29.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (29.7ms) Completed 200 OK in 33ms (Views: 30.1ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 22:14:20 +0400 Started PATCH "/admin/articles/740" for 127.0.0.1 at 2013-09-18 22:14:20 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379528060575"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379528060575"}}, "id"=>"739"}}, "commit"=>"Submit", "id"=>"740"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "740"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 740], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["page_id", 739], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 739]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 739]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 739], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 739]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.3ms) Rendered admin/articles/edit.html.haml within layouts/application (22.8ms) Completed 200 OK in 30ms (Views: 23.1ms | ActiveRecord: 2.1ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/741/edit" for 127.0.0.1 at 2013-09-18 22:14:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"741"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "741"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 741], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00], ["pageable_id", 741], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:20 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 740]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 740]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 740], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 740]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/740/video_blocks/new?content_block%5Btemp_id%5D=1379528060997" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528060997"}, "page_id"=>"740"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "740"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 741]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 741], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.2ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/740/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379528060997" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379528060997"}, "page_id"=>"740"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "740"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["page_id", 740], ["position", 0], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 741]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 741], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.1ms) Started GET "/admin/articles/741/edit" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"741"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "741"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 741], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 740]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 740]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 740], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 740]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.4ms) Rendered admin/articles/edit.html.haml within layouts/application (17.8ms) Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (164.2ms) Completed 200 OK in 171ms (Views: 164.6ms | ActiveRecord: 3.2ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/742/edit" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"742"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "742"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 742], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["pageable_id", 742], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 741]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 741]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 741], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 741]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Rendered admin/articles/edit.html.haml within layouts/application (9.6ms) Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/741/video_blocks/new?content_block%5Btemp_id%5D=1379528061352" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379528061352"}, "page_id"=>"741"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "741"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 742]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 742], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (14.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (15.3ms) Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/742" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379528061352"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379528061352"}}, "id"=>"741"}}, "commit"=>"Submit", "id"=>"742"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "742"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 742], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 741]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 741]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 741], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 741]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.4ms) Rendered admin/articles/edit.html.haml within layouts/application (16.2ms) Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 0.7ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/743/edit" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"743"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "743"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 743], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["pageable_id", 743], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 742]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 742]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 742], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 742]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 743], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["page_id", 742], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:21 UTC +00:00], ["youtube", "11111111111"]]  (0.6ms) commit transaction Started GET "/admin/articles/743/edit" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"743"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "743"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 743], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 742]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 742]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 742], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 742]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Rendered admin/articles/edit.html.haml within layouts/application (15.8ms) Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/742/video_blocks/398" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"742", "id"=>"398"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "742"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 742], ["id", "398"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 398]]  (2.0ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.7ms) Started GET "/admin/articles/743/edit" for 127.0.0.1 at 2013-09-18 22:14:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"743"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "743"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 743], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 742]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 742]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 742], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 742]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.0ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["page_id", 743], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["description", "image name 7"], ["imageable_id", 348], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["description", "image name 8"], ["imageable_id", 348], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["description", "image name 9"], ["imageable_id", 348], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["page_id", 743], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["height", 480], ["page_id", 743], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 743 [["pageable_type", "Article"], ["pageable_id", 744], ["updated_at", Wed, 18 Sep 2013 18:14:31 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 743]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 743]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 743], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 743]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 348], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (32.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.4ms) Rendered articles/show.html.haml (44.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["page_id", 744], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 10"], ["imageable_id", 349], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 11"], ["imageable_id", 349], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 12"], ["imageable_id", 349], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["page_id", 744], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["height", 480], ["page_id", 744], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 744 [["pageable_type", "Article"], ["pageable_id", 745], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 744]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 744]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 744], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 744]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 349], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["page_id", 745], ["position", 1], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 13"], ["imageable_id", 350], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 14"], ["imageable_id", 350], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["description", "image name 15"], ["imageable_id", 350], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["page_id", 745], ["position", 2], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["height", 480], ["page_id", 745], ["position", 3], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 745 [["pageable_type", "Article"], ["pageable_id", 746], ["updated_at", Wed, 18 Sep 2013 18:14:32 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 745]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 745]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 745], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 745]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 350], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.0ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (4.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:12 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:12 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/747/edit" for 127.0.0.1 at 2013-09-18 23:48:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"747"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "747"]] Redditor::Page Load (0.7ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 747], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:14 UTC +00:00], ["pageable_id", 747], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:14 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.6ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 746]] Redditor::VideoBlock Load (0.5ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 746]] Redditor::Image Load (0.5ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 746], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.6ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 746]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (39.9ms) Rendered admin/articles/edit.html.haml within layouts/application (81.3ms) Completed 200 OK in 834ms (Views: 793.2ms | ActiveRecord: 7.9ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Started GET "/redditor/admin/pages/746/text_blocks/new?content_block%5Btemp_id%5D=1379533695920" for 127.0.0.1 at 2013-09-18 23:48:15 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533695920"}, "page_id"=>"746"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "746"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 747]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 747], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (50.7ms) Completed 200 OK in 72ms (Views: 56.9ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Started PATCH "/admin/articles/747" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1379533695920"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379533695920"}}, "id"=>"746"}}, "commit"=>"Submit", "id"=>"747"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "747"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 747], ["pageable_type", "Article"]] SQL (1.1ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00], ["page_id", 746], ["position", 0], ["updated_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 746]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 746]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 746], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 746]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.3ms) Rendered admin/articles/edit.html.haml within layouts/application (20.9ms) Completed 200 OK in 30ms (Views: 21.3ms | ActiveRecord: 2.6ms) Article Load (11.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/748/edit" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"748"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "748"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 748], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00], ["pageable_id", 748], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 747]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 747]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 747], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 747]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.6ms) Rendered admin/articles/edit.html.haml within layouts/application (11.4ms) Completed 200 OK in 18ms (Views: 10.5ms | ActiveRecord: 4.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 748], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00], ["page_id", 747], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:16 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/748/edit" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"748"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "748"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 748], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 747]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 747]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 747], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 747]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.0ms) Rendered admin/articles/edit.html.haml within layouts/application (11.6ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/747/text_blocks/439" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"747", "id"=>"439"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "747"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 747], ["id", "439"]]  (0.0ms) begin transaction SQL (1.0ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 439]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.5ms) Started GET "/admin/articles/748/edit" for 127.0.0.1 at 2013-09-18 23:48:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"748"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "748"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 748], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 747]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 747]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 747], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 747]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/749/edit" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"749"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "749"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 749], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00], ["pageable_id", 749], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 748]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 748]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 748], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 748]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.9ms) Rendered admin/articles/edit.html.haml within layouts/application (9.3ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 2.8ms) Started GET "/redditor/admin/pages/748/text_blocks/new?content_block%5Btemp_id%5D=1379533706523" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533706523"}, "page_id"=>"748"} Redditor::Page Load (0.5ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "748"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 749]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 749], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (43.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (43.8ms) Completed 200 OK in 47ms (Views: 43.8ms | ActiveRecord: 0.9ms) Started POST "/redditor/admin/pages/748/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1379533706523" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1379533706523"}, "page_id"=>"748"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "748"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00], ["page_id", 748], ["position", 0], ["updated_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00]]  (0.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 749]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 749], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.4ms) Started GET "/admin/articles/749/edit" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"749"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "749"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 749], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 748]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 748]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 748], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 748]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.5ms) Rendered admin/articles/edit.html.haml within layouts/application (12.4ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.7ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/750/edit" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"750"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "750"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 750], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00], ["pageable_id", 750], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:26 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 749]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 749]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 749], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 749]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.2ms) Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/749/text_blocks/new?content_block%5Btemp_id%5D=1379533706863" for 127.0.0.1 at 2013-09-18 23:48:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533706863"}, "page_id"=>"749"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "749"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 750]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 750], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (14.1ms) Completed 200 OK in 18ms (Views: 14.4ms | ActiveRecord: 0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (235.2ms) Completed 200 OK in 246ms (Views: 241.2ms | ActiveRecord: 2.0ms)  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:36 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:36 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 750], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 1"], ["imageable_id", 351], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 2"], ["imageable_id", 351], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 3"], ["imageable_id", 351], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 750], ["position", 2], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["height", 480], ["page_id", 750], ["position", 3], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 750 [["pageable_type", "Article"], ["pageable_id", 751], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 750]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 750]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 750], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 750]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 351], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.9ms) Rendered collection (37.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (43.5ms) Rendered articles/show.html.haml (50.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 751], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 4"], ["imageable_id", 352], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 5"], ["imageable_id", 352], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 6"], ["imageable_id", 352], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 751], ["position", 2], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["height", 480], ["page_id", 751], ["position", 3], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 751 [["pageable_type", "Article"], ["pageable_id", 752], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 751]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 751]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 751], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 751]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 352], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.7ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.0ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 752], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 7"], ["imageable_id", 353], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 8"], ["imageable_id", 353], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["description", "image name 9"], ["imageable_id", 353], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 752], ["position", 2], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["height", 480], ["page_id", 752], ["position", 3], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 752 [["pageable_type", "Article"], ["pageable_id", 753], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 752]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 752]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 752], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 752]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 353], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.9ms) Rendered collection (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/754/edit" for 127.0.0.1 at 2013-09-18 23:48:37 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"754"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "754"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 754], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["pageable_id", 754], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 753]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 753]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 753], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 753]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/753/video_blocks/new?content_block%5Btemp_id%5D=1379533717720" for 127.0.0.1 at 2013-09-18 23:48:37 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533717720"}, "page_id"=>"753"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "753"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 754]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 754], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (11.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (23.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (28.8ms) Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-09-18 23:48:37 +0400 Started PATCH "/admin/articles/754" for 127.0.0.1 at 2013-09-18 23:48:37 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379533717720"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379533717720"}}, "id"=>"753"}}, "commit"=>"Submit", "id"=>"754"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "754"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 754], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["page_id", 753], ["position", 0], ["updated_at", Wed, 18 Sep 2013 19:48:37 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 753]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 753]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 753], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 753]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (19.2ms) Completed 200 OK in 29ms (Views: 22.0ms | ActiveRecord: 2.0ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/755/edit" for 127.0.0.1 at 2013-09-18 23:48:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"755"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "755"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 755], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00], ["pageable_id", 755], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 754]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 754]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 754], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 754]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 755], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00], ["page_id", 754], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:38 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/755/edit" for 127.0.0.1 at 2013-09-18 23:48:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"755"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "755"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 755], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 754]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 754]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 754], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 754]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.3ms) Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/754/video_blocks/406" for 127.0.0.1 at 2013-09-18 23:48:38 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"754", "id"=>"406"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "754"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 754], ["id", "406"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 406]]  (0.7ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/755/edit" for 127.0.0.1 at 2013-09-18 23:48:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"755"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "755"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 755], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 754]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 754]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 754], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 754]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.8ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/756/edit" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"756"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "756"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 756], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["pageable_id", 756], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 755]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 755]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 755], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 755]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/755/video_blocks/new?content_block%5Btemp_id%5D=1379533728651" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533728651"}, "page_id"=>"755"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "755"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 756]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 756], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.0ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/755/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1379533728651" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1379533728651"}, "page_id"=>"755"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "755"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["page_id", 755], ["position", 0], ["updated_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["youtube", "11111111111"]]  (2.0ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 756]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 756], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.2ms) Started GET "/admin/articles/756/edit" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"756"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "756"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 756], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 755]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 755]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 755], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 755]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.5ms) Completed 200 OK in 28ms (Views: 23.6ms | ActiveRecord: 1.1ms) Completed 200 OK in 153ms (Views: 147.3ms | ActiveRecord: 2.8ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/757/edit" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"757"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "757"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 757], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00], ["pageable_id", 757], ["pageable_type", "Article"], ["updated_at", Wed, 18 Sep 2013 19:48:48 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 756]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 756]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 756], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 756]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/756/video_blocks/new?content_block%5Btemp_id%5D=1379533728992" for 127.0.0.1 at 2013-09-18 23:48:48 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1379533728992"}, "page_id"=>"756"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "756"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 757]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 757], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.2ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/757" for 127.0.0.1 at 2013-09-18 23:48:49 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1379533728992"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1379533728992"}}, "id"=>"756"}}, "commit"=>"Submit", "id"=>"757"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "757"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 757], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 756]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 756]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 756], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 756]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (16.3ms) Completed 200 OK in 60ms (Views: 50.7ms | ActiveRecord: 1.1ms)  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["page_id", 757], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 757 [["pageable_type", "Article"], ["pageable_id", 758], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 757]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 757]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 757], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 757]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["height", 480], ["page_id", 758], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 758 [["pageable_type", "Article"], ["pageable_id", 759], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 758]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 758]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 758], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 758]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["page_id", 759], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 10"], ["imageable_id", 354], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 11"], ["imageable_id", 354], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 12"], ["imageable_id", 354], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["page_id", 759], ["position", 2], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["height", 480], ["page_id", 759], ["position", 3], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 759 [["pageable_type", "Article"], ["pageable_id", 760], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 759]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 759]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 759], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 759]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["page_id", 760], ["position", 1], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 13"], ["imageable_id", 355], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 14"], ["imageable_id", 355], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["description", "image name 15"], ["imageable_id", 355], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]] SQL (0.8ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 760 [["pageable_type", "Article"], ["pageable_id", 761], ["updated_at", Wed, 18 Sep 2013 19:48:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 760]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 760]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 760], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 760]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 355], ["imageable_type", "Redditor::SliderBlock"]] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (8.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00], ["page_id", 761], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00], ["description", "image name 1"], ["imageable_id", 356], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00], ["description", "image name 2"], ["imageable_id", 356], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00], ["description", "image name 3"], ["imageable_id", 356], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["page_id", 761], ["position", 2], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["height", 480], ["page_id", 761], ["position", 3], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]] SQL (1.0ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 761 [["pageable_type", "Article"], ["pageable_id", 762], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 761]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 761]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 761], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 761]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 356], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (35.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (66.8ms) Rendered articles/show.html.haml (78.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["page_id", 762], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 4"], ["imageable_id", 357], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 5"], ["imageable_id", 357], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (14.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 6"], ["imageable_id", 357], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["page_id", 762], ["position", 2], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["height", 480], ["page_id", 762], ["position", 3], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 762 [["pageable_type", "Article"], ["pageable_id", 763], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 762]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 762]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 762], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 762]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 357], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.4ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["page_id", 763], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 7"], ["imageable_id", 358], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 8"], ["imageable_id", 358], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["description", "image name 9"], ["imageable_id", 358], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["page_id", 763], ["position", 2], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["height", 480], ["page_id", 763], ["position", 3], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 763 [["pageable_type", "Article"], ["pageable_id", 764], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 763]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 763]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 763], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 763]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 358], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.3ms) Rendered collection (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:48 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/765/edit" for 127.0.0.1 at 2013-10-03 16:20:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"765"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "765"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 765], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:50 UTC +00:00], ["pageable_id", 765], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:20:50 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 764]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 764]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 764], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 764]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.3ms) Completed 200 OK in 1163ms (Views: 1151.5ms | ActiveRecord: 4.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:20:51 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:20:51 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-10-03 16:20:51 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-10-03 16:20:51 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started GET "/redditor/admin/pages/764/video_blocks/new?content_block%5Btemp_id%5D=1380802852105" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802852105"}, "page_id"=>"764"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "764"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 765]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 765], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (21.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (35.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (56.8ms) Completed 200 OK in 75ms (Views: 70.0ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Started PATCH "/admin/articles/765" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1380802852105"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1380802852105"}}, "id"=>"764"}}, "commit"=>"Submit", "id"=>"765"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "765"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 765], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["page_id", 764], ["position", 0], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 764]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 764]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 764], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 764]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (55.6ms) Completed 200 OK in 66ms (Views: 58.5ms | ActiveRecord: 2.2ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/766/edit" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"766"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "766"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 766], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["pageable_id", 766], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 765]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 765]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 765], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 765]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.6ms) Completed 200 OK in 16ms (Views: 8.7ms | ActiveRecord: 3.7ms) Started GET "/redditor/admin/pages/765/video_blocks/new?content_block%5Btemp_id%5D=1380802852651" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802852651"}, "page_id"=>"765"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "765"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 766]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 766], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.6ms) Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 1.2ms) Started PATCH "/admin/articles/766" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1380802852651"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1380802852651"}}, "id"=>"765"}}, "commit"=>"Submit", "id"=>"766"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "766"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 766], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 765]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 765]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 765], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 765]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.5ms) Completed 200 OK in 23ms (Views: 15.7ms | ActiveRecord: 0.8ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/767/edit" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"767"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "767"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 767], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["pageable_id", 767], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 766]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 766]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 766], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 766]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/766/video_blocks/new?content_block%5Btemp_id%5D=1380802852866" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802852866"}, "page_id"=>"766"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "766"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 767]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 767], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.4ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/766/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1380802852866" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1380802852866"}, "page_id"=>"766"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "766"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["page_id", 766], ["position", 0], ["updated_at", Thu, 03 Oct 2013 12:20:52 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 767]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 767], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.3ms) Started GET "/admin/articles/767/edit" for 127.0.0.1 at 2013-10-03 16:20:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"767"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "767"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 767], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 766]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 766]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 766], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 766]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.3ms) Completed 200 OK in 31ms (Views: 25.0ms | ActiveRecord: 2.0ms) Completed 200 OK in 140ms (Views: 134.2ms | ActiveRecord: 3.2ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/768/edit" for 127.0.0.1 at 2013-10-03 16:20:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"768"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "768"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 768], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00], ["pageable_id", 768], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 767]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 767]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 767], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 767]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.3ms) Completed 200 OK in 17ms (Views: 9.3ms | ActiveRecord: 3.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 768], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00], ["page_id", 767], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:20:53 UTC +00:00], ["youtube", "11111111111"]]  (1.4ms) commit transaction Started GET "/admin/articles/768/edit" for 127.0.0.1 at 2013-10-03 16:20:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"768"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "768"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 768], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 767]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 767]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 767], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 767]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.7ms) Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/767/video_blocks/415" for 127.0.0.1 at 2013-10-03 16:20:53 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"767", "id"=>"415"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "767"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 767], ["id", "415"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 415]]  (2.8ms) commit transaction Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.7ms) Started GET "/admin/articles/768/edit" for 127.0.0.1 at 2013-10-03 16:20:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"768"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "768"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 768], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 767]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 767]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 767], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 767]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["page_id", 768], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 768 [["pageable_type", "Article"], ["pageable_id", 769], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 768]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 768]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 768], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 768]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["page_id", 769], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 10"], ["imageable_id", 359], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 11"], ["imageable_id", 359], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 12"], ["imageable_id", 359], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 769 [["pageable_type", "Article"], ["pageable_id", 770], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 769]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 769]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 769], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 769]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 359], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["page_id", 770], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 13"], ["imageable_id", 360], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 14"], ["imageable_id", 360], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["description", "image name 15"], ["imageable_id", 360], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["page_id", 770], ["position", 2], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["height", 480], ["page_id", 770], ["position", 3], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 770 [["pageable_type", "Article"], ["pageable_id", 771], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 770]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 770]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 770], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 770]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["height", 480], ["page_id", 771], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 771 [["pageable_type", "Article"], ["pageable_id", 772], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 771]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 771]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 771], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 771]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/773/edit" for 127.0.0.1 at 2013-10-03 16:21:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"773"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "773"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 773], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00], ["pageable_id", 773], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:21:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 772]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 772]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 772], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 772]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 2.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:03 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:03 +0400 Started GET "/redditor/admin/pages/772/text_blocks/new?content_block%5Btemp_id%5D=1380802863963" for 127.0.0.1 at 2013-10-03 16:21:03 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802863963"}, "page_id"=>"772"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "772"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 773]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 773], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (17.5ms) Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started PATCH "/admin/articles/773" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1380802863963"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1380802863963"}}, "id"=>"772"}}, "commit"=>"Submit", "id"=>"773"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "773"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 773], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["page_id", 772], ["position", 0], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 772]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 772]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 772], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 772]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Completed 200 OK in 22ms (Views: 15.4ms | ActiveRecord: 2.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/774/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"774"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "774"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 774], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["pageable_id", 774], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 773]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 773]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 773], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 773]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Completed 200 OK in 12ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/redditor/admin/pages/773/text_blocks/new?content_block%5Btemp_id%5D=1380802864240" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802864240"}, "page_id"=>"773"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "773"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 774]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 774], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.4ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/774" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1380802864240"=>{"position"=>"0", "body"=>"", "temp_id"=>"1380802864240"}}, "id"=>"773"}}, "commit"=>"Submit", "id"=>"774"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "774"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 774], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 773]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 773]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 773], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 773]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.1ms) Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/775/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"775"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "775"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 775], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["pageable_id", 775], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 774]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 774]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 774], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 774]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.6ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/redditor/admin/pages/774/text_blocks/new?content_block%5Btemp_id%5D=1380802864483" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1380802864483"}, "page_id"=>"774"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "774"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 775]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 775], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.5ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/774/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1380802864483" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1380802864483"}, "page_id"=>"774"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "774"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["page_id", 774], ["position", 0], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (2.3ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 775]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 775], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Started GET "/admin/articles/775/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"775"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "775"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 775], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 774]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 774]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 774], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 774]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.1ms) Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 1.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.7ms) commit transaction Completed 200 OK in 132ms (Views: 126.1ms | ActiveRecord: 3.1ms) Started GET "/admin/articles/776/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"776"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "776"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 776], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["pageable_id", 776], ["pageable_type", "Article"], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 775]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 775]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 775], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 775]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 776], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00], ["page_id", 775], ["position", 1], ["updated_at", Thu, 03 Oct 2013 12:21:04 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/776/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"776"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "776"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 776], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 775]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 775]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 775], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 775]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.0ms) Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 0.9ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started DELETE "/redditor/admin/pages/775/text_blocks/453" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"775", "id"=>"453"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "775"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 775], ["id", "453"]]  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 453]]  (0.6ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.4ms) Started GET "/admin/articles/776/edit" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"776"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "776"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 776], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 775]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 775]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 775], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 775]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-03 16:21:04 +0400 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (8.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 776], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (2.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 1"], ["imageable_id", 361], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 2"], ["imageable_id", 361], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 3"], ["imageable_id", 361], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 776], ["position", 2], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["height", 480], ["page_id", 776], ["position", 3], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]] SQL (1.0ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 776 [["pageable_type", "Article"], ["pageable_id", 777], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 776]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 776]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 776], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 776]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["height", 480], ["page_id", 777], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 777 [["pageable_type", "Article"], ["pageable_id", 778], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 777]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 777]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 777], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 777]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 778], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 778 [["pageable_type", "Article"], ["pageable_id", 779], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 778]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 778]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 778], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 778]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 779], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 4"], ["imageable_id", 362], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 5"], ["imageable_id", 362], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 6"], ["imageable_id", 362], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 779 [["pageable_type", "Article"], ["pageable_id", 780], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 779]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 779]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 779], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 779]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 362], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 780], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 7"], ["imageable_id", 363], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 8"], ["imageable_id", 363], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 9"], ["imageable_id", 363], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 780], ["position", 2], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["height", 480], ["page_id", 780], ["position", 3], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 780 [["pageable_type", "Article"], ["pageable_id", 781], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 780]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 780]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 780], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 780]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 363], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (5.7ms) Rendered collection (37.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (42.6ms) Rendered articles/show.html.haml (53.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["page_id", 781], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00], ["description", "image name 10"], ["imageable_id", 364], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 364], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["description", "image name 12"], ["imageable_id", 364], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["page_id", 781], ["position", 2], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["height", 480], ["page_id", 781], ["position", 3], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 781 [["pageable_type", "Article"], ["pageable_id", 782], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 781]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 781]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 781], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 781]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 364], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (3.8ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["page_id", 782], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["description", "image name 13"], ["imageable_id", 365], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["description", "image name 14"], ["imageable_id", 365], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["description", "image name 15"], ["imageable_id", 365], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["page_id", 782], ["position", 2], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["height", 480], ["page_id", 782], ["position", 3], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 782 [["pageable_type", "Article"], ["pageable_id", 783], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 782]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 782]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 782], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 782]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 365], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.erb (4.0ms) Rendered collection (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.7ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:25 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/784/edit" for 127.0.0.1 at 2013-10-07 13:53:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"784"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "784"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 784], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:27 UTC +00:00], ["pageable_id", 784], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:27 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 783]] Redditor::VideoBlock Load (36.6ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 783]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 783], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 783]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (56.4ms) Completed 200 OK in 162ms (Views: 113.1ms | ActiveRecord: 41.4ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-10-07 13:53:27 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-10-07 13:53:27 +0400 Started GET "/assets/redditor/fileapi/mailru.js" for 127.0.0.1 at 2013-10-07 13:53:27 +0400 Started GET "/assets/redditor/fileapi/fileapi.css" for 127.0.0.1 at 2013-10-07 13:53:27 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started GET "/redditor/admin/pages/783/text_blocks/new?content_block%5Btemp_id%5D=1381139608035" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139608035"}, "page_id"=>"783"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "783"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 784]] Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 784], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (16.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (32.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (56.5ms) Completed 200 OK in 76ms (Views: 70.4ms | ActiveRecord: 1.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Started POST "/redditor/admin/pages/783/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1381139608035" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1381139608035"}, "page_id"=>"783"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "783"]]  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00], ["page_id", 783], ["position", 0], ["updated_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00]]  (1.0ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 784]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 784], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.5ms) Started GET "/admin/articles/784/edit" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"784"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "784"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 784], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 783]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 783]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 783], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 783]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (30.1ms) Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 2.2ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/785/edit" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"785"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "785"]] Redditor::Page Load (0.5ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 785], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00], ["pageable_id", 785], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 784]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 784]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 784], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 784]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.6ms) Completed 200 OK in 33ms (Views: 19.0ms | ActiveRecord: 6.2ms) Completed 200 OK in 303ms (Views: 296.0ms | ActiveRecord: 2.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 785], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00], ["page_id", 784], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:28 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/785/edit" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"785"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "785"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 785], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 784]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 784]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 784], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 784]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.8ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 1.0ms) Started DELETE "/redditor/admin/pages/784/text_blocks/460" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"784", "id"=>"460"} Redditor::Page Load (0.5ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "784"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 784], ["id", "460"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 460]]  (2.1ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 3.2ms) Started GET "/admin/articles/785/edit" for 127.0.0.1 at 2013-10-07 13:53:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"785"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "785"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 785], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 784]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 784]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 784], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 784]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.5ms) Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.0ms) Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:38 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:38 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/786/edit" for 127.0.0.1 at 2013-10-07 13:53:38 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"786"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "786"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 786], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:38 UTC +00:00], ["pageable_id", 786], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:38 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 785]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 785]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 785], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 785]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/785/text_blocks/new?content_block%5Btemp_id%5D=1381139618959" for 127.0.0.1 at 2013-10-07 13:53:38 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139618959"}, "page_id"=>"785"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "785"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 786]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 786], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.3ms) Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/786" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1381139618959"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1381139618959"}}, "id"=>"785"}}, "commit"=>"Submit", "id"=>"786"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "786"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 786], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["page_id", 785], ["position", 0], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 785]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 785]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 785], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 785]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.9ms) Completed 200 OK in 22ms (Views: 14.1ms | ActiveRecord: 2.6ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/787/edit" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"787"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "787"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 787], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["pageable_id", 787], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 786]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 786]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 786], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 786]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/786/text_blocks/new?content_block%5Btemp_id%5D=1381139619180" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139619180"}, "page_id"=>"786"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "786"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 787]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 787], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/787" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1381139619180"=>{"position"=>"0", "body"=>"", "temp_id"=>"1381139619180"}}, "id"=>"786"}}, "commit"=>"Submit", "id"=>"787"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "787"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 787], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 786]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 786]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 786], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 786]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.4ms) Completed 200 OK in 50ms (Views: 13.0ms | ActiveRecord: 0.8ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/788/edit" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"788"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "788"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 788], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["pageable_id", 788], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 787]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 787]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 787], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 787]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/787/video_blocks/new?content_block%5Btemp_id%5D=1381139619422" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139619422"}, "page_id"=>"787"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "787"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 788]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 788], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (12.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (24.6ms) Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.3ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Started POST "/redditor/admin/pages/787/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1381139619422" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1381139619422"}, "page_id"=>"787"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "787"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["page_id", 787], ["position", 0], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 788]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 788], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.8ms) Started GET "/admin/articles/788/edit" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"788"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "788"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 788], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 787]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 787]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 787], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 787]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (16.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.6ms) Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.9ms) Completed 200 OK in 139ms (Views: 133.5ms | ActiveRecord: 2.0ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/789/edit" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"789"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "789"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 789], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["pageable_id", 789], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 788]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 788]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 788], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 788]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 789], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["page_id", 788], ["position", 1], ["updated_at", Mon, 07 Oct 2013 09:53:39 UTC +00:00], ["youtube", "11111111111"]]  (1.4ms) commit transaction Started GET "/admin/articles/789/edit" for 127.0.0.1 at 2013-10-07 13:53:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"789"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "789"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 789], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 788]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 788]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 788], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 788]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.4ms) Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.8ms) Started DELETE "/redditor/admin/pages/788/video_blocks/424" for 127.0.0.1 at 2013-10-07 13:53:40 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"788", "id"=>"424"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "788"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 788], ["id", "424"]]  (0.0ms) begin transaction SQL (2.2ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 424]]  (0.8ms) commit transaction Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 3.5ms) Started GET "/admin/articles/789/edit" for 127.0.0.1 at 2013-10-07 13:53:40 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"789"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "789"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 789], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 788]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 788]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 788], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 788]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 42ms (Views: 38.5ms | ActiveRecord: 0.8ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/790/edit" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"790"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "790"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 790], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["pageable_id", 790], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 789]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 789]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 789], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 789]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/789/video_blocks/new?content_block%5Btemp_id%5D=1381139630349" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139630349"}, "page_id"=>"789"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "789"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 790]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 790], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.2ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/790" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1381139630349"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1381139630349"}}, "id"=>"789"}}, "commit"=>"Submit", "id"=>"790"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "790"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 790], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["page_id", 789], ["position", 0], ["updated_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["youtube", "11111111111"]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 789]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 789]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 789], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 789]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.3ms) Completed 200 OK in 27ms (Views: 17.2ms | ActiveRecord: 3.8ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["title", "Test article"], ["updated_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/791/edit" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"791"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "791"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 791], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00], ["pageable_id", 791], ["pageable_type", "Article"], ["updated_at", Mon, 07 Oct 2013 09:53:50 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 790]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 790]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 790], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 790]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.6ms) Completed 200 OK in 19ms (Views: 11.1ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/790/video_blocks/new?content_block%5Btemp_id%5D=1381139630736" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1381139630736"}, "page_id"=>"790"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "790"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 791]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 791], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.6ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/791" for 127.0.0.1 at 2013-10-07 13:53:50 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1381139630736"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1381139630736"}}, "id"=>"790"}}, "commit"=>"Submit", "id"=>"791"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "791"]]  (0.2ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 791], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 790]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 790]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 790], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 790]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.4ms) Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 1.0ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (7.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["page_id", 791], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]] SQL (1.0ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 791 [["pageable_type", "Article"], ["pageable_id", 792], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 791]] Redditor::VideoBlock Load (0.6ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 791]] Redditor::Image Load (0.7ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 791], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.6ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 791]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["page_id", 792], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 1"], ["imageable_id", 366], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 2"], ["imageable_id", 366], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 3"], ["imageable_id", 366], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["page_id", 792], ["position", 2], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["height", 480], ["page_id", 792], ["position", 3], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 792 [["pageable_type", "Article"], ["pageable_id", 793], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 792]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 792]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 792], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 792]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["page_id", 793], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 4"], ["imageable_id", 367], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 5"], ["imageable_id", 367], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["description", "image name 6"], ["imageable_id", 367], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 793 [["pageable_type", "Article"], ["pageable_id", 794], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 793]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 793]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 793], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 793]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 367], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["height", 480], ["page_id", 794], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 794 [["pageable_type", "Article"], ["pageable_id", 795], ["updated_at", Thu, 07 Nov 2013 07:20:29 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 794]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 794]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 794], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 794]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 795], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 368], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 8"], ["imageable_id", 368], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 368], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 795], ["position", 2], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["height", 480], ["page_id", 795], ["position", 3], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 795 [["pageable_type", "Article"], ["pageable_id", 796], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 795]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 795]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 795], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 795]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 368], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (5.0ms) Rendered collection (34.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (40.4ms) Rendered articles/show.html.haml (81.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 796], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 369], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 369], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 369], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 796], ["position", 2], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["height", 480], ["page_id", 796], ["position", 3], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 796 [["pageable_type", "Article"], ["pageable_id", 797], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 796]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 796]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 796], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 796]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 369], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.4ms) Rendered collection (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 797], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 13"], ["imageable_id", 370], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 14"], ["imageable_id", 370], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["description", "image name 15"], ["imageable_id", 370], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["page_id", 797], ["position", 2], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["height", 480], ["page_id", 797], ["position", 3], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 797 [["pageable_type", "Article"], ["pageable_id", 798], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 797]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 797]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 797], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 797]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 370], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.9ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:30 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/799/edit" for 127.0.0.1 at 2013-11-07 11:20:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"799"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "799"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 799], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:33 UTC +00:00], ["pageable_id", 799], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 798]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 798]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 798], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 798]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.9ms) Completed 200 OK in 783ms (Views: 772.4ms | ActiveRecord: 4.2ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/redditor/admin/pages/798/video_blocks/new?content_block%5Btemp_id%5D=1383808834628" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808834628"}, "page_id"=>"798"} Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "798"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 799]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 799], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (20.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (36.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (60.4ms) Completed 200 OK in 81ms (Views: 76.6ms | ActiveRecord: 0.9ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Started PATCH "/admin/articles/799" for 127.0.0.1 at 2013-11-07 11:20:34 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383808834628"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383808834628"}}, "id"=>"798"}}, "commit"=>"Submit", "id"=>"799"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "799"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 799], ["pageable_type", "Article"]] SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:34 UTC +00:00], ["page_id", 798], ["position", 0], ["updated_at", Thu, 07 Nov 2013 07:20:34 UTC +00:00], ["youtube", "11111111111"]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 798]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 798]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 798], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 798]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (31.0ms) Completed 200 OK in 45ms (Views: 34.0ms | ActiveRecord: 4.1ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:35 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/800/edit" for 127.0.0.1 at 2013-11-07 11:20:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"800"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "800"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 800], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:35 UTC +00:00], ["pageable_id", 800], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:35 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 799]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 799]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 799], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 799]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.7ms) Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/799/video_blocks/new?content_block%5Btemp_id%5D=1383808835243" for 127.0.0.1 at 2013-11-07 11:20:35 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808835243"}, "page_id"=>"799"} Redditor::Page Load (0.7ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "799"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 800]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 800], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.2ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 1.0ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/801/edit" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"801"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "801"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 801], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["pageable_id", 801], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 800]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 800]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 800], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 800]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.7ms) Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 2.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Started GET "/redditor/admin/pages/800/video_blocks/new?content_block%5Btemp_id%5D=1383808845468" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808845468"}, "page_id"=>"800"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "800"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 801]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 801], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.6ms) Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/801" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383808845468"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1383808845468"}}, "id"=>"800"}}, "commit"=>"Submit", "id"=>"801"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "801"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 801], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 800]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 800]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 800], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 800]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.6ms) Completed 200 OK in 25ms (Views: 17.7ms | ActiveRecord: 0.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/802/edit" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"802"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "802"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 802], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["pageable_id", 802], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 801]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 801]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 801], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 801]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.4ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.8ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 802], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["page_id", 801], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:20:45 UTC +00:00], ["youtube", "11111111111"]]  (1.4ms) commit transaction Started GET "/admin/articles/802/edit" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"802"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "802"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 802], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 801]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 801]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 801], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 801]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.0ms) Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.8ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:45 +0400 Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:55 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/803/edit" for 127.0.0.1 at 2013-11-07 11:20:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"803"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "803"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 803], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:55 UTC +00:00], ["pageable_id", 803], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 802]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 802]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 802], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 802]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 2.1ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:55 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:55 +0400 Started GET "/redditor/admin/pages/802/text_blocks/new?content_block%5Btemp_id%5D=1383808856017" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808856017"}, "page_id"=>"802"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "802"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 803]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 803], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (23.8ms) Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Started PATCH "/admin/articles/803" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383808856017"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383808856017"}}, "id"=>"802"}}, "commit"=>"Submit", "id"=>"803"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "803"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 803], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00], ["page_id", 802], ["position", 0], ["updated_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 802]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 802]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 802], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 802]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.0ms) Completed 200 OK in 30ms (Views: 21.7ms | ActiveRecord: 2.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/804/edit" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"804"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "804"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 804], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00], ["pageable_id", 804], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:20:56 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 803]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 803]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 803], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 803]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Started GET "/redditor/admin/pages/803/text_blocks/new?content_block%5Btemp_id%5D=1383808856319" for 127.0.0.1 at 2013-11-07 11:20:56 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808856319"}, "page_id"=>"803"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "803"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 804]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 804], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.6ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.3ms) Article Load (3.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/805/edit" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"805"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "805"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 805], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00], ["pageable_id", 805], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 804]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 804]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 804], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 804]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.4ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 1.9ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Started GET "/redditor/admin/pages/804/text_blocks/new?content_block%5Btemp_id%5D=1383808866554" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383808866554"}, "page_id"=>"804"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "804"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 805]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 805], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.1ms) Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/805" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383808866554"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383808866554"}}, "id"=>"804"}}, "commit"=>"Submit", "id"=>"805"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "805"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 805], ["pageable_type", "Article"]]  (0.0ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 804]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 804]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 804], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 804]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.1ms) Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 0.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/806/edit" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"806"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "806"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 806], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00], ["pageable_id", 806], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 805]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 805]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 805], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 805]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 1.8ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 806], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00], ["page_id", 805], ["position", 1], ["updated_at", Thu, 07 Nov 2013 07:21:06 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/806/edit" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"806"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "806"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 806], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 805]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 805]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 805], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 805]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.5ms) Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 11:21:06 +0400 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:22 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:22 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/807/edit" for 127.0.0.1 at 2013-11-07 13:07:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"807"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "807"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 807], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:24 UTC +00:00], ["pageable_id", 807], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:24 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 806]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 806]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 806], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 806]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.3ms) Rendered admin/articles/edit.html.haml within layouts/application (63.2ms) Completed 200 OK in 152ms (Views: 113.3ms | ActiveRecord: 4.4ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:07:24 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:07:24 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:07:24 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Started GET "/redditor/admin/pages/806/text_blocks/new?content_block%5Btemp_id%5D=1383815245029" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815245029"}, "page_id"=>"806"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "806"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 807]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 807], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (27.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (48.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (55.8ms) Completed 200 OK in 80ms (Views: 62.9ms | ActiveRecord: 1.4ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Started PATCH "/admin/articles/807" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815245029"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815245029"}}, "id"=>"806"}}, "commit"=>"Submit", "id"=>"807"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "807"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 807], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00], ["page_id", 806], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 806]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 806]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 806], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 806]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.9ms) Rendered admin/articles/edit.html.haml within layouts/application (26.9ms) Completed 200 OK in 38ms (Views: 27.8ms | ActiveRecord: 3.0ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/808/edit" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"808"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "808"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 808], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00], ["pageable_id", 808], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 807]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 807]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 807], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 807]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.2ms) Rendered admin/articles/edit.html.haml within layouts/application (9.4ms) Completed 200 OK in 17ms (Views: 9.7ms | ActiveRecord: 3.6ms) Started GET "/redditor/admin/pages/807/text_blocks/new?content_block%5Btemp_id%5D=1383815245435" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815245435"}, "page_id"=>"807"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "807"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 808]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 808], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.4ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/808" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815245435"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815245435"}}, "id"=>"807"}}, "commit"=>"Submit", "id"=>"808"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "808"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 808], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 807]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 807]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 807], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 807]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Rendered admin/articles/edit.html.haml within layouts/application (15.1ms) Completed 200 OK in 24ms (Views: 15.1ms | ActiveRecord: 2.0ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/809/edit" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"809"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "809"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 809], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00], ["pageable_id", 809], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 808]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 808]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 808], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 808]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/808/text_blocks/new?content_block%5Btemp_id%5D=1383815245633" for 127.0.0.1 at 2013-11-07 13:07:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815245633"}, "page_id"=>"808"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "808"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 809]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 809], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (55.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (55.5ms) Completed 200 OK in 58ms (Views: 56.1ms | ActiveRecord: 0.5ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/810/edit" for 127.0.0.1 at 2013-11-07 13:07:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"810"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "810"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 810], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00], ["pageable_id", 810], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 809]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 809]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 809], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 809]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 810], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00], ["page_id", 809], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/810/edit" for 127.0.0.1 at 2013-11-07 13:07:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"810"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "810"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 810], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 809]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 809]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 809], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 809]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (40.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (46.6ms) Rendered admin/articles/edit.html.haml within layouts/application (49.1ms) Completed 200 OK in 52ms (Views: 49.9ms | ActiveRecord: 0.8ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:45 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:45 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 810], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 1"], ["imageable_id", 371], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 2"], ["imageable_id", 371], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 3"], ["imageable_id", 371], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 810], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["height", 480], ["page_id", 810], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 810 [["pageable_type", "Article"], ["pageable_id", 811], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 810]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 810]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 810], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 810]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 371], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (6.2ms) Rendered collection (41.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (47.1ms) Rendered articles/show.html.haml (54.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 811], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 4"], ["imageable_id", 372], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 5"], ["imageable_id", 372], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 6"], ["imageable_id", 372], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 811], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["height", 480], ["page_id", 811], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 811 [["pageable_type", "Article"], ["pageable_id", 812], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 811]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 811]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 811], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 811]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 372], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.1ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 812], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 7"], ["imageable_id", 373], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 8"], ["imageable_id", 373], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 9"], ["imageable_id", 373], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 812], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["height", 480], ["page_id", 812], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 812 [["pageable_type", "Article"], ["pageable_id", 813], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 812]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 812]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 812], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 812]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 373], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.8ms) Rendered collection (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.7ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 813], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 813 [["pageable_type", "Article"], ["pageable_id", 814], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 813]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 813]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 813], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 813]]  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 814], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 10"], ["imageable_id", 374], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 11"], ["imageable_id", 374], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (1.4ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 12"], ["imageable_id", 374], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 814 [["pageable_type", "Article"], ["pageable_id", 815], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 814]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 814]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 814], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 814]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 374], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["page_id", 815], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 13"], ["imageable_id", 375], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00], ["description", "image name 14"], ["imageable_id", 375], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:46 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["description", "image name 15"], ["imageable_id", 375], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["page_id", 815], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["height", 480], ["page_id", 815], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 815 [["pageable_type", "Article"], ["pageable_id", 816], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 815]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 815]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 815], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 815]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["height", 480], ["page_id", 816], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 816 [["pageable_type", "Article"], ["pageable_id", 817], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 816]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 816]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 816], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 816]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/818/edit" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"818"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "818"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 818], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["pageable_id", 818], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 817]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 817]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 817], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 817]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/817/video_blocks/new?content_block%5Btemp_id%5D=1383815267154" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815267154"}, "page_id"=>"817"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "817"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 818]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 818], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (25.9ms) Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Started PATCH "/admin/articles/818" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815267154"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815267154"}}, "id"=>"817"}}, "commit"=>"Submit", "id"=>"818"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "818"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 818], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["page_id", 817], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["youtube", "11111111111"]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 817]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 817]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 817], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 817]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.3ms) Completed 200 OK in 34ms (Views: 26.9ms | ActiveRecord: 2.4ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/819/edit" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"819"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "819"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 819], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00], ["pageable_id", 819], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 818]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 818]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 818], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 818]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (40.4ms) Completed 200 OK in 48ms (Views: 43.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/818/video_blocks/new?content_block%5Btemp_id%5D=1383815267623" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815267623"}, "page_id"=>"818"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "818"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 819]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 819], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.7ms) Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/819" for 127.0.0.1 at 2013-11-07 13:07:47 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"818"}}, "commit"=>"Submit", "id"=>"819"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "819"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 819], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 818]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 818]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 818], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 818]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.8ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:57 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:07:57 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/820/edit" for 127.0.0.1 at 2013-11-07 13:07:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"820"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "820"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 820], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:07:57 UTC +00:00], ["pageable_id", 820], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:07:57 UTC +00:00]]  (4.2ms) commit transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 819]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 819]] Redditor::Image Load (0.4ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 819], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 819]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.4ms) Completed 200 OK in 31ms (Views: 19.7ms | ActiveRecord: 6.4ms) Started GET "/redditor/admin/pages/819/video_blocks/new?content_block%5Btemp_id%5D=1383815277881" for 127.0.0.1 at 2013-11-07 13:07:57 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815277881"}, "page_id"=>"819"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "819"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 820]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 820], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (19.8ms) Completed 200 OK in 24ms (Views: 20.8ms | ActiveRecord: 0.8ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:07 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:07 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/821/edit" for 127.0.0.1 at 2013-11-07 13:08:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"821"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "821"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 821], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:07 UTC +00:00], ["pageable_id", 821], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:07 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 820]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 820]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 820], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 820]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 821], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:08 UTC +00:00], ["page_id", 820], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:08 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/821/edit" for 127.0.0.1 at 2013-11-07 13:08:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"821"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "821"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 821], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 820]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 820]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 820], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 820]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.1ms) Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:21 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:21 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/822/edit" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"822"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "822"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 822], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:23 UTC +00:00], ["pageable_id", 822], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:23 UTC +00:00]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 821]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 821]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 821], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 821]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (36.9ms) Rendered admin/articles/edit.html.haml within layouts/application (54.5ms) Completed 200 OK in 120ms (Views: 81.3ms | ActiveRecord: 6.2ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:08:23 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 822], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:08:24 UTC +00:00], ["page_id", 821], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:24 UTC +00:00]]  (2.5ms) commit transaction Started GET "/admin/articles/822/edit" for 127.0.0.1 at 2013-11-07 13:08:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"822"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "822"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 822], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 821]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 821]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 821], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 821]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.5ms) Rendered admin/articles/edit.html.haml within layouts/application (28.3ms) Completed 200 OK in 32ms (Views: 29.8ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:08:24 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:08:24 +0400 Article Load (3.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/823/edit" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"823"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "823"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 823], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["pageable_id", 823], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 822]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 822]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 822], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 822]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.2ms) Rendered admin/articles/edit.html.haml within layouts/application (9.3ms) Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 3.7ms) Started GET "/redditor/admin/pages/822/text_blocks/new?content_block%5Btemp_id%5D=1383815306299" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815306299"}, "page_id"=>"822"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "822"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 823]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 823], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (44.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (51.4ms) Completed 200 OK in 62ms (Views: 58.4ms | ActiveRecord: 1.2ms) Started PATCH "/admin/articles/823" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815306299"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815306299"}}, "id"=>"822"}}, "commit"=>"Submit", "id"=>"823"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "823"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 823], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["page_id", 822], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 822]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 822]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 822], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 822]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.5ms) Rendered admin/articles/edit.html.haml within layouts/application (15.0ms) Completed 200 OK in 25ms (Views: 15.2ms | ActiveRecord: 4.5ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/824/edit" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"824"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "824"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 824], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["pageable_id", 824], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 823]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 823]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 823], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 823]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.0ms) Rendered admin/articles/edit.html.haml within layouts/application (40.1ms) Completed 200 OK in 46ms (Views: 40.5ms | ActiveRecord: 2.7ms) Started GET "/redditor/admin/pages/823/text_blocks/new?content_block%5Btemp_id%5D=1383815306611" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815306611"}, "page_id"=>"823"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "823"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 824]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 824], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.4ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/824" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815306611"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815306611"}}, "id"=>"823"}}, "commit"=>"Submit", "id"=>"824"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "824"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 824], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 823]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 823]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 823], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 823]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.3ms) Rendered admin/articles/edit.html.haml within layouts/application (12.0ms) Completed 200 OK in 21ms (Views: 13.3ms | ActiveRecord: 0.8ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/825/edit" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"825"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "825"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 825], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00], ["pageable_id", 825], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 824]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 824]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 824], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 824]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Rendered admin/articles/edit.html.haml within layouts/application (6.4ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/824/text_blocks/new?content_block%5Btemp_id%5D=1383815306798" for 127.0.0.1 at 2013-11-07 13:08:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815306798"}, "page_id"=>"824"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "824"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 825]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 825], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.0ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00], ["page_id", 825], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00], ["description", "image name 1"], ["imageable_id", 376], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00], ["description", "image name 2"], ["imageable_id", 376], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:28 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 3"], ["imageable_id", 376], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 825], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["height", 480], ["page_id", 825], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 825 [["pageable_type", "Article"], ["pageable_id", 826], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 825]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 825]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 825], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 825]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 376], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.8ms) Rendered collection (38.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (47.9ms) Rendered articles/show.html.haml (55.1ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 826], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 4"], ["imageable_id", 377], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 5"], ["imageable_id", 377], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 6"], ["imageable_id", 377], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 826], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["height", 480], ["page_id", 826], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 826 [["pageable_type", "Article"], ["pageable_id", 827], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 826]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 826]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 826], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 826]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 377], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 827], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 7"], ["imageable_id", 378], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 8"], ["imageable_id", 378], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 9"], ["imageable_id", 378], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 827], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["height", 480], ["page_id", 827], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 827 [["pageable_type", "Article"], ["pageable_id", 828], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 827]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 827]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 827], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 827]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 378], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.0ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["height", 480], ["page_id", 828], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 828 [["pageable_type", "Article"], ["pageable_id", 829], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 828]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 828]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 828], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 828]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 829], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 829 [["pageable_type", "Article"], ["pageable_id", 830], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 829]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 829]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 829], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 829]]  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 830], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 10"], ["imageable_id", 379], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 11"], ["imageable_id", 379], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 12"], ["imageable_id", 379], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 830 [["pageable_type", "Article"], ["pageable_id", 831], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 830]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 830]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 830], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 830]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 379], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 831], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 13"], ["imageable_id", 380], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 14"], ["imageable_id", 380], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["description", "image name 15"], ["imageable_id", 380], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["page_id", 831], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["height", 480], ["page_id", 831], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 831 [["pageable_type", "Article"], ["pageable_id", 832], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 831]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 831]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 831], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 831]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/833/edit" for 127.0.0.1 at 2013-11-07 13:08:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"833"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "833"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 833], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00], ["pageable_id", 833], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 832]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 832]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 832], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 832]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.2ms) Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 833], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:30 UTC +00:00], ["page_id", 832], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:08:30 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/833/edit" for 127.0.0.1 at 2013-11-07 13:08:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"833"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "833"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 833], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 832]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 832]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 832], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 832]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.8ms) Completed 200 OK in 31ms (Views: 28.3ms | ActiveRecord: 1.1ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 13:08:30 +0400 Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/834/edit" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"834"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "834"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 834], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["pageable_id", 834], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 833]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 833]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 833], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 833]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/833/video_blocks/new?content_block%5Btemp_id%5D=1383815312325" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815312325"}, "page_id"=>"833"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "833"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 834]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 834], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (22.4ms) Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/834" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815312325"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815312325"}}, "id"=>"833"}}, "commit"=>"Submit", "id"=>"834"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "834"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 834], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["page_id", 833], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 833]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 833]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 833], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 833]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.1ms) Completed 200 OK in 32ms (Views: 24.3ms | ActiveRecord: 2.2ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/835/edit" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"835"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "835"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 835], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["pageable_id", 835], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 834]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 834]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 834], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 834]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.5ms) Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/834/video_blocks/new?content_block%5Btemp_id%5D=1383815312739" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815312739"}, "page_id"=>"834"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "834"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 835]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 835], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.7ms) Completed 200 OK in 18ms (Views: 14.1ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/835" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815312739"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1383815312739"}}, "id"=>"834"}}, "commit"=>"Submit", "id"=>"835"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "835"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 835], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 834]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 834]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 834], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 834]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.5ms) Completed 200 OK in 28ms (Views: 19.8ms | ActiveRecord: 0.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/836/edit" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"836"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "836"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 836], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00], ["pageable_id", 836], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:08:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 835]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 835]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 835], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 835]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/835/video_blocks/new?content_block%5Btemp_id%5D=1383815312952" for 127.0.0.1 at 2013-11-07 13:08:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815312952"}, "page_id"=>"835"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "835"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 836]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 836], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.5ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.4ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:45 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:10:45 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/837/edit" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"837"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "837"]] Redditor::Page Load (0.9ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 837], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:47 UTC +00:00], ["pageable_id", 837], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:10:47 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.6ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 836]] Redditor::VideoBlock Load (0.4ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 836]] Redditor::Image Load (0.6ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 836], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.5ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 836]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (43.6ms) Rendered admin/articles/edit.html.haml within layouts/application (68.9ms) Completed 200 OK in 161ms (Views: 118.5ms | ActiveRecord: 8.7ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/redditor/admin/pages/836/text_blocks/new?content_block%5Btemp_id%5D=1383815447746" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815447746"}, "page_id"=>"836"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "836"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 837]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 837], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (12.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (49.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (56.3ms) Completed 200 OK in 82ms (Views: 63.0ms | ActiveRecord: 1.9ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Started PATCH "/admin/articles/837" for 127.0.0.1 at 2013-11-07 13:10:47 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815447746"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815447746"}}, "id"=>"836"}}, "commit"=>"Submit", "id"=>"837"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "837"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 837], ["pageable_type", "Article"]] SQL (1.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:10:47 UTC +00:00], ["page_id", 836], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:10:47 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 836]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 836]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 836], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 836]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.8ms) Rendered admin/articles/edit.html.haml within layouts/application (27.6ms) Completed 200 OK in 42ms (Views: 28.2ms | ActiveRecord: 3.7ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:10:48 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/838/edit" for 127.0.0.1 at 2013-11-07 13:10:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"838"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "838"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 838], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:48 UTC +00:00], ["pageable_id", 838], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:10:48 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 837]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 837]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 837], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 837]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/837/text_blocks/new?content_block%5Btemp_id%5D=1383815448102" for 127.0.0.1 at 2013-11-07 13:10:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815448102"}, "page_id"=>"837"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "837"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 838]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 838], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.7ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.4ms) Article Load (3.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/839/edit" for 127.0.0.1 at 2013-11-07 13:10:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"839"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "839"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 839], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00], ["pageable_id", 839], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 838]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 838]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 838], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 838]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Rendered admin/articles/edit.html.haml within layouts/application (8.7ms) Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 839], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00], ["page_id", 838], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:10:50 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/839/edit" for 127.0.0.1 at 2013-11-07 13:10:50 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"839"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "839"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 839], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 838]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 838]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 838], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 838]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.1ms) Rendered admin/articles/edit.html.haml within layouts/application (13.4ms) Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 0.8ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:52 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:10:52 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/840/edit" for 127.0.0.1 at 2013-11-07 13:10:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"840"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "840"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 840], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:10:52 UTC +00:00], ["pageable_id", 840], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:10:52 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 839]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 839]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 839], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 839]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Rendered admin/articles/edit.html.haml within layouts/application (6.5ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/839/text_blocks/new?content_block%5Btemp_id%5D=1383815452478" for 127.0.0.1 at 2013-11-07 13:10:52 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815452478"}, "page_id"=>"839"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "839"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 840]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 840], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.4ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/840" for 127.0.0.1 at 2013-11-07 13:10:52 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815452478"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815452478"}}, "id"=>"839"}}, "commit"=>"Submit", "id"=>"840"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "840"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 840], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 839]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 839]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 839], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 839]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.8ms) Rendered admin/articles/edit.html.haml within layouts/application (16.4ms) Completed 200 OK in 26ms (Views: 17.0ms | ActiveRecord: 1.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:07 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:07 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/841/edit" for 127.0.0.1 at 2013-11-07 13:12:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"841"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "841"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 841], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:08 UTC +00:00], ["pageable_id", 841], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:08 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 840]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 840]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 840], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 840]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.6ms) Rendered admin/articles/edit.html.haml within layouts/application (51.7ms) Completed 200 OK in 115ms (Views: 81.6ms | ActiveRecord: 6.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/redditor/admin/pages/840/text_blocks/new?content_block%5Btemp_id%5D=1383815529238" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815529238"}, "page_id"=>"840"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "840"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 841]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 841], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (40.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (46.4ms) Completed 200 OK in 69ms (Views: 52.7ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Started PATCH "/admin/articles/841" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815529238"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815529238"}}, "id"=>"840"}}, "commit"=>"Submit", "id"=>"841"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "841"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 841], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00], ["page_id", 840], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 840]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 840]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 840], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 840]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.7ms) Rendered admin/articles/edit.html.haml within layouts/application (28.4ms) Completed 200 OK in 42ms (Views: 28.7ms | ActiveRecord: 5.5ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/842/edit" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"842"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "842"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 842], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00], ["pageable_id", 842], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:09 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 841]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 841]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 841], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 841]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Rendered admin/articles/edit.html.haml within layouts/application (8.2ms) Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/841/text_blocks/new?content_block%5Btemp_id%5D=1383815529568" for 127.0.0.1 at 2013-11-07 13:12:09 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815529568"}, "page_id"=>"841"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "841"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 842]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 842], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.9ms) Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 1.0ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/843/edit" for 127.0.0.1 at 2013-11-07 13:12:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"843"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "843"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 843], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00], ["pageable_id", 843], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 842]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 842]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 842], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 842]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.3ms) Rendered admin/articles/edit.html.haml within layouts/application (9.4ms) Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/842/text_blocks/new?content_block%5Btemp_id%5D=1383815531778" for 127.0.0.1 at 2013-11-07 13:12:11 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815531778"}, "page_id"=>"842"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "842"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 843]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 843], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.6ms) Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/843" for 127.0.0.1 at 2013-11-07 13:12:11 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815531778"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815531778"}}, "id"=>"842"}}, "commit"=>"Submit", "id"=>"843"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "843"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 843], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 842]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 842]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 842], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 842]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.5ms) Completed 200 OK in 22ms (Views: 14.6ms | ActiveRecord: 0.7ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/844/edit" for 127.0.0.1 at 2013-11-07 13:12:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"844"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "844"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 844], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00], ["pageable_id", 844], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 843]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 843]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 843], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 843]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Rendered admin/articles/edit.html.haml within layouts/application (8.9ms) Completed 200 OK in 16ms (Views: 9.9ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 844], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00], ["page_id", 843], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:12:11 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/844/edit" for 127.0.0.1 at 2013-11-07 13:12:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"844"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "844"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 844], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 843]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 843]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 843], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 843]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.6ms) Rendered admin/articles/edit.html.haml within layouts/application (15.3ms) Completed 200 OK in 19ms (Views: 16.6ms | ActiveRecord: 0.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/845/edit" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"845"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "845"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 845], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:27 UTC +00:00], ["pageable_id", 845], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 844]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 844]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 844], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 844]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (33.9ms) Rendered admin/articles/edit.html.haml within layouts/application (49.4ms) Completed 200 OK in 109ms (Views: 77.0ms | ActiveRecord: 4.2ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/redditor/admin/pages/844/text_blocks/new?content_block%5Btemp_id%5D=1383815547819" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815547819"}, "page_id"=>"844"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "844"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 845]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 845], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (11.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (25.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (49.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (56.9ms) Completed 200 OK in 81ms (Views: 63.9ms | ActiveRecord: 1.5ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Started PATCH "/admin/articles/845" for 127.0.0.1 at 2013-11-07 13:12:27 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815547819"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815547819"}}, "id"=>"844"}}, "commit"=>"Submit", "id"=>"845"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "845"]]  (0.0ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 845], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:12:27 UTC +00:00], ["page_id", 844], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:12:27 UTC +00:00]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 844]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 844]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 844], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 844]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (22.9ms) Rendered admin/articles/edit.html.haml within layouts/application (25.8ms) Completed 200 OK in 39ms (Views: 26.2ms | ActiveRecord: 4.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:28 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:28 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/846/edit" for 127.0.0.1 at 2013-11-07 13:12:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"846"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "846"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 846], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:28 UTC +00:00], ["pageable_id", 846], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:28 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 845]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 845]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 845], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 845]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.9ms) Rendered admin/articles/edit.html.haml within layouts/application (9.3ms) Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 4.0ms) Started GET "/redditor/admin/pages/845/text_blocks/new?content_block%5Btemp_id%5D=1383815548163" for 127.0.0.1 at 2013-11-07 13:12:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815548163"}, "page_id"=>"845"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "845"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 846]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 846], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.7ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.5ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:30 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:30 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/847/edit" for 127.0.0.1 at 2013-11-07 13:12:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"847"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "847"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 847], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:30 UTC +00:00], ["pageable_id", 847], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:30 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 846]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 846]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 846], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 846]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.1ms) Rendered admin/articles/edit.html.haml within layouts/application (9.7ms) Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/846/text_blocks/new?content_block%5Btemp_id%5D=1383815550325" for 127.0.0.1 at 2013-11-07 13:12:30 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815550325"}, "page_id"=>"846"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "846"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 847]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 847], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.2ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.6ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/848/edit" for 127.0.0.1 at 2013-11-07 13:12:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"848"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "848"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 848], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00], ["pageable_id", 848], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 847]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 847]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 847], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 847]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.0ms) Rendered admin/articles/edit.html.haml within layouts/application (11.9ms) Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 3.1ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 848], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00], ["page_id", 847], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:12:32 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/848/edit" for 127.0.0.1 at 2013-11-07 13:12:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"848"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "848"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 848], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 847]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 847]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 847], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 847]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.6ms) Rendered admin/articles/edit.html.haml within layouts/application (16.1ms) Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.9ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:12:58 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:12:58 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/849/edit" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"849"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "849"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 849], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:00 UTC +00:00], ["pageable_id", 849], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 848]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 848]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 848], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 848]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (37.6ms) Rendered admin/articles/edit.html.haml within layouts/application (61.7ms) Completed 200 OK in 162ms (Views: 121.4ms | ActiveRecord: 4.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Started GET "/redditor/admin/pages/848/text_blocks/new?content_block%5Btemp_id%5D=1383815580665" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815580665"}, "page_id"=>"848"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "848"]] Started PATCH "/admin/articles/849" for 127.0.0.1 at 2013-11-07 13:13:00 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"848"}}, "commit"=>"Submit", "id"=>"849"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 849]] [36mArticle Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "849"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 849], ["pageable_type", "Article"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 849], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 848]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 848]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 848], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 848]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.7ms) Rendered admin/articles/edit.html.haml within layouts/application (10.0ms) Completed 200 OK in 39ms (Views: 25.4ms | ActiveRecord: 2.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (72.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (79.3ms) Completed 200 OK in 102ms (Views: 85.8ms | ActiveRecord: 0.6ms) Article Load (3.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:02 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/850/edit" for 127.0.0.1 at 2013-11-07 13:13:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"850"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "850"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 850], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:02 UTC +00:00], ["pageable_id", 850], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:02 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 849]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 849]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 849], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 849]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.4ms) Rendered admin/articles/edit.html.haml within layouts/application (6.4ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/849/text_blocks/new?content_block%5Btemp_id%5D=1383815582954" for 127.0.0.1 at 2013-11-07 13:13:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815582954"}, "page_id"=>"849"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "849"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 850]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 850], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.6ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:13:03 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:13:03 +0400 Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/851/edit" for 127.0.0.1 at 2013-11-07 13:13:05 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"851"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "851"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 851], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00], ["pageable_id", 851], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 850]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 850]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 850], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 850]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.8ms) Rendered admin/articles/edit.html.haml within layouts/application (11.3ms) Completed 200 OK in 18ms (Views: 11.7ms | ActiveRecord: 3.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 851], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00], ["page_id", 850], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:13:05 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/851/edit" for 127.0.0.1 at 2013-11-07 13:13:05 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"851"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "851"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 851], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 850]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 850]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 850], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 850]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.4ms) Rendered admin/articles/edit.html.haml within layouts/application (22.7ms) Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/852/edit" for 127.0.0.1 at 2013-11-07 13:13:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"852"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "852"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 852], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00], ["pageable_id", 852], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 851]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 851]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 851], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 851]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 14ms (Views: 7.9ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/851/text_blocks/new?content_block%5Btemp_id%5D=1383815587338" for 127.0.0.1 at 2013-11-07 13:13:07 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815587338"}, "page_id"=>"851"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "851"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 852]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 852], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.8ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/852" for 127.0.0.1 at 2013-11-07 13:13:07 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815587338"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815587338"}}, "id"=>"851"}}, "commit"=>"Submit", "id"=>"852"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "852"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 852], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00], ["page_id", 851], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:13:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 851]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 851]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 851], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 851]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.6ms) Rendered admin/articles/edit.html.haml within layouts/application (16.9ms) Completed 200 OK in 25ms (Views: 18.1ms | ActiveRecord: 2.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:23 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:23 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/853/edit" for 127.0.0.1 at 2013-11-07 13:13:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"853"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "853"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 853], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:25 UTC +00:00], ["pageable_id", 853], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 852]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 852]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 852], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 852]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (36.5ms) Rendered admin/articles/edit.html.haml within layouts/application (64.1ms) Completed 200 OK in 155ms (Views: 117.0ms | ActiveRecord: 4.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Started GET "/redditor/admin/pages/852/text_blocks/new?content_block%5Btemp_id%5D=1383815606210" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815606210"}, "page_id"=>"852"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "852"]] Started PATCH "/admin/articles/853" for 127.0.0.1 at 2013-11-07 13:13:26 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"852"}}, "commit"=>"Submit", "id"=>"853"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 853]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "853"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 853], ["pageable_type", "Article"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 853], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 852]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 852]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 852], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 852]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (18.1ms) Rendered admin/articles/edit.html.haml within layouts/application (20.2ms) Completed 200 OK in 44ms (Views: 30.8ms | ActiveRecord: 0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (13.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (28.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (68.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (79.0ms) Completed 200 OK in 103ms (Views: 86.3ms | ActiveRecord: 1.5ms) Article Load (2.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/854/edit" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"854"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "854"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 854], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["pageable_id", 854], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 853]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 853]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 853], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 853]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.8ms) Rendered admin/articles/edit.html.haml within layouts/application (10.1ms) Completed 200 OK in 17ms (Views: 10.5ms | ActiveRecord: 3.4ms) Started GET "/redditor/admin/pages/853/text_blocks/new?content_block%5Btemp_id%5D=1383815608502" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815608502"}, "page_id"=>"853"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "853"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 854]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 854], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (44.2ms) Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Started PATCH "/admin/articles/854" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815608502"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815608502"}}, "id"=>"853"}}, "commit"=>"Submit", "id"=>"854"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "854"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 854], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["page_id", 853], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 853]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 853]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 853], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 853]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (23.5ms) Rendered admin/articles/edit.html.haml within layouts/application (26.9ms) Completed 200 OK in 39ms (Views: 29.2ms | ActiveRecord: 2.3ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/855/edit" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"855"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "855"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 855], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["pageable_id", 855], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 854]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 854]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 854], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 854]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Rendered admin/articles/edit.html.haml within layouts/application (8.3ms) Completed 200 OK in 18ms (Views: 9.3ms | ActiveRecord: 3.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 855], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00], ["page_id", 854], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:13:28 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/855/edit" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"855"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "855"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 855], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 854]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 854]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 854], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 854]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Rendered admin/articles/edit.html.haml within layouts/application (16.0ms) Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 1.7ms) Started DELETE "/redditor/admin/pages/854/text_blocks/492" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"854", "id"=>"492"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "854"]] Redditor::TextBlock Load (0.5ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 854], ["id", "492"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 492]]  (1.7ms) commit transaction Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/855/edit" for 127.0.0.1 at 2013-11-07 13:13:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"855"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "855"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 855], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 854]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 854]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 854], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 854]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (8.0ms) Rendered admin/articles/edit.html.haml within layouts/application (10.4ms) Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 2.1ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/856/edit" for 127.0.0.1 at 2013-11-07 13:13:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"856"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "856"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 856], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00], ["pageable_id", 856], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 855]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 855]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 855], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 855]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Rendered admin/articles/edit.html.haml within layouts/application (7.9ms) Completed 200 OK in 16ms (Views: 9.3ms | ActiveRecord: 2.9ms) Started GET "/redditor/admin/pages/855/text_blocks/new?content_block%5Btemp_id%5D=1383815611161" for 127.0.0.1 at 2013-11-07 13:13:31 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815611161"}, "page_id"=>"855"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "855"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 856]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 856], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.6ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/855/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1383815611161" for 127.0.0.1 at 2013-11-07 13:13:31 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815611161"}, "page_id"=>"855"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "855"]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00], ["page_id", 855], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:13:31 UTC +00:00]]  (2.3ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 856]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 856], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.0ms) Started GET "/admin/articles/856/edit" for 127.0.0.1 at 2013-11-07 13:13:31 +0400 Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (46.2ms) Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"856"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "856"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 856], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 855]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 855]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 855], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 855]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (12.4ms) Rendered admin/articles/edit.html.haml within layouts/application (15.0ms) Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (244.0ms) Completed in 259ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:14 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:14 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/857/edit" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"857"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "857"]] Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 857], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:16 UTC +00:00], ["pageable_id", 857], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:16 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 856]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 856]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 856], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 856]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (38.3ms) Rendered admin/articles/edit.html.haml within layouts/application (55.9ms) Completed 200 OK in 120ms (Views: 84.5ms | ActiveRecord: 6.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/redditor/admin/pages/856/text_blocks/new?content_block%5Btemp_id%5D=1383815656850" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815656850"}, "page_id"=>"856"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "856"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 857]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 857], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (24.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (45.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (52.6ms) Completed 200 OK in 77ms (Views: 59.8ms | ActiveRecord: 0.9ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:14:16 +0400 Started PATCH "/admin/articles/857" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815656850"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815656850"}}, "id"=>"856"}}, "commit"=>"Submit", "id"=>"857"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "857"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 857], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["page_id", 856], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 856]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 856]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 856], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 856]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (16.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (25.4ms) Rendered admin/articles/edit.html.haml within layouts/application (28.1ms) Completed 200 OK in 43ms (Views: 28.7ms | ActiveRecord: 5.5ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/858/edit" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"858"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "858"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 858], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["pageable_id", 858], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 857]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 857]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 857], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 857]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 14ms (Views: 7.9ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/857/text_blocks/new?content_block%5Btemp_id%5D=1383815657210" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815657210"}, "page_id"=>"857"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "857"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 858]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 858], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.3ms) Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 0.9ms) Started PATCH "/admin/articles/858" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815657210"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815657210"}}, "id"=>"857"}}, "commit"=>"Submit", "id"=>"858"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "858"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 858], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 857]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 857]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 857], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 857]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.6ms) Rendered admin/articles/edit.html.haml within layouts/application (13.7ms) Completed 200 OK in 22ms (Views: 14.6ms | ActiveRecord: 0.8ms) Article Load (3.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/859/edit" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"859"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "859"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 859], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["pageable_id", 859], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 858]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 858]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 858], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 858]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Rendered admin/articles/edit.html.haml within layouts/application (8.0ms) Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 859], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00], ["page_id", 858], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:17 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/859/edit" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"859"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "859"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 859], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 858]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 858]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 858], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 858]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (10.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.1ms) Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/858/text_blocks/495" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"858", "id"=>"495"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "858"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 858], ["id", "495"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 495]]  (0.9ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms) Started GET "/admin/articles/859/edit" for 127.0.0.1 at 2013-11-07 13:14:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"859"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "859"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 859], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 858]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 858]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 858], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 858]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.7ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/860/edit" for 127.0.0.1 at 2013-11-07 13:14:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"860"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "860"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 860], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00], ["pageable_id", 860], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 859]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 859]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 859], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 859]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.5ms) Rendered admin/articles/edit.html.haml within layouts/application (6.5ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/859/text_blocks/new?content_block%5Btemp_id%5D=1383815659744" for 127.0.0.1 at 2013-11-07 13:14:19 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815659744"}, "page_id"=>"859"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "859"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 860]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 860], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (10.6ms) Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/859/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1383815659744" for 127.0.0.1 at 2013-11-07 13:14:19 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815659744"}, "page_id"=>"859"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "859"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00], ["page_id", 859], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:14:19 UTC +00:00]]  (2.3ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 860]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 860], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.0ms) Started GET "/admin/articles/860/edit" for 127.0.0.1 at 2013-11-07 13:14:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"860"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "860"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 860], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 859]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 859]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 859], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 859]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.7ms) Rendered admin/articles/edit.html.haml within layouts/application (24.6ms) Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (148.8ms) Completed in 162ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00], ["page_id", 860], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00], ["description", "image name 1"], ["imageable_id", 381], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00], ["description", "image name 2"], ["imageable_id", 381], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:24 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["description", "image name 3"], ["imageable_id", 381], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["page_id", 860], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["height", 480], ["page_id", 860], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 860 [["pageable_type", "Article"], ["pageable_id", 861], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 860]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 860]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 860], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 860]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["height", 480], ["page_id", 861], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 861 [["pageable_type", "Article"], ["pageable_id", 862], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 861]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 861]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 861], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 861]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["page_id", 862], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 862 [["pageable_type", "Article"], ["pageable_id", 863], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 862]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 862]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 862], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 862]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["page_id", 863], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["description", "image name 4"], ["imageable_id", 382], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["description", "image name 5"], ["imageable_id", 382], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["description", "image name 6"], ["imageable_id", 382], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 863 [["pageable_type", "Article"], ["pageable_id", 864], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 863]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 863]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 863], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 863]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 382], ["imageable_type", "Redditor::SliderBlock"]] Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/865/edit" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"865"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "865"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 865], ["pageable_type", "Article"]]  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:27 UTC +00:00], ["pageable_id", 865], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 864]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 864]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 864], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 864]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.1ms) Rendered admin/articles/edit.html.haml within layouts/application (42.7ms) Completed 200 OK in 107ms (Views: 94.1ms | ActiveRecord: 4.0ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/redditor/admin/pages/864/video_blocks/new?content_block%5Btemp_id%5D=1383815667414" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815667414"}, "page_id"=>"864"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "864"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 865]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 865], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (52.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (68.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (88.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (96.4ms) Completed 200 OK in 107ms (Views: 103.6ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:14:27 +0400 Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/866/edit" for 127.0.0.1 at 2013-11-07 13:14:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"866"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "866"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 866], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00], ["pageable_id", 866], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 865]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 865]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 865], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 865]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.5ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 866], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00], ["page_id", 865], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:29 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/866/edit" for 127.0.0.1 at 2013-11-07 13:14:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"866"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "866"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 866], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 865]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 865]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 865], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 865]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (18.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.5ms) Rendered admin/articles/edit.html.haml within layouts/application (26.5ms) Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:31 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:31 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/867/edit" for 127.0.0.1 at 2013-11-07 13:14:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"867"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "867"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 867], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:31 UTC +00:00], ["pageable_id", 867], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:31 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 866]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 866]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 866], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 866]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/866/video_blocks/new?content_block%5Btemp_id%5D=1383815672042" for 127.0.0.1 at 2013-11-07 13:14:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815672042"}, "page_id"=>"866"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "866"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 867]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 867], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (12.5ms) Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.8ms) Started PATCH "/admin/articles/867" for 127.0.0.1 at 2013-11-07 13:14:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815672042"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815672042"}}, "id"=>"866"}}, "commit"=>"Submit", "id"=>"867"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "867"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 867], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 866], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 866]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 866]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 866], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 866]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.4ms) Rendered admin/articles/edit.html.haml within layouts/application (16.3ms) Completed 200 OK in 59ms (Views: 17.7ms | ActiveRecord: 2.0ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/868/edit" for 127.0.0.1 at 2013-11-07 13:14:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"868"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "868"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 868], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["pageable_id", 868], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 867]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 867]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 867], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 867]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/867/video_blocks/new?content_block%5Btemp_id%5D=1383815672363" for 127.0.0.1 at 2013-11-07 13:14:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815672363"}, "page_id"=>"867"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "867"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 868]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 868], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (11.8ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/868" for 127.0.0.1 at 2013-11-07 13:14:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815672363"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1383815672363"}}, "id"=>"867"}}, "commit"=>"Submit", "id"=>"868"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "868"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 868], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 867]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 867]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 867], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 867]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.5ms) Rendered admin/articles/edit.html.haml within layouts/application (15.5ms) Completed 200 OK in 23ms (Views: 16.7ms | ActiveRecord: 0.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 868], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 7"], ["imageable_id", 383], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 8"], ["imageable_id", 383], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 9"], ["imageable_id", 383], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 868], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["height", 480], ["page_id", 868], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 868 [["pageable_type", "Article"], ["pageable_id", 869], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 868]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 868]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 868], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 868]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 383], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.8ms) Rendered collection (39.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (45.0ms) Rendered articles/show.html.haml (51.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 869], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 10"], ["imageable_id", 384], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 11"], ["imageable_id", 384], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 12"], ["imageable_id", 384], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 869], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["height", 480], ["page_id", 869], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 869 [["pageable_type", "Article"], ["pageable_id", 870], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 869]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 869]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 869], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 869]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 384], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.1ms) Rendered collection (37.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (42.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["page_id", 870], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00], ["description", "image name 13"], ["imageable_id", 385], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["description", "image name 14"], ["imageable_id", 385], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["description", "image name 15"], ["imageable_id", 385], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["page_id", 870], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["height", 480], ["page_id", 870], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 870 [["pageable_type", "Article"], ["pageable_id", 871], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 870]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 870]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 870], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 870]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 385], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.0ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/872/edit" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"872"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "872"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 872], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["pageable_id", 872], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 871]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 871]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 871], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 871]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/871/text_blocks/new?content_block%5Btemp_id%5D=1383815673157" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815673157"}, "page_id"=>"871"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "871"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 872]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 872], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (14.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (17.9ms) Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Started POST "/redditor/admin/pages/871/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1383815673157" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815673157"}, "page_id"=>"871"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "871"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["page_id", 871], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.8ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 872]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 872], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.1ms) Started GET "/admin/articles/872/edit" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"872"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "872"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 872], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 871]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 871]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 871], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 871]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.2ms) Completed 200 OK in 25ms (Views: 20.8ms | ActiveRecord: 0.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/873/edit" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"873"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "873"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 873], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["pageable_id", 873], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 872]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 872]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 872], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 872]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.5ms) Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 2.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 873], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00], ["page_id", 872], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:14:33 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/873/edit" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"873"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "873"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 873], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 872]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 872]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 872], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 872]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.7ms) Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.8ms) Completed 200 OK in 235ms (Views: 229.2ms | ActiveRecord: 1.7ms) Started DELETE "/redditor/admin/pages/872/text_blocks/503" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"872", "id"=>"503"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "872"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 872], ["id", "503"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 503]]  (0.8ms) commit transaction Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.6ms) Started GET "/admin/articles/873/edit" for 127.0.0.1 at 2013-11-07 13:14:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"873"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "873"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 873], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 872]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 872]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 872], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 872]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.7ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/874/edit" for 127.0.0.1 at 2013-11-07 13:14:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"874"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "874"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 874], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00], ["pageable_id", 874], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 873]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 873]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 873], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 873]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/873/text_blocks/new?content_block%5Btemp_id%5D=1383815675763" for 127.0.0.1 at 2013-11-07 13:14:35 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815675763"}, "page_id"=>"873"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "873"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 874]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 874], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.8ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/874" for 127.0.0.1 at 2013-11-07 13:14:35 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815675763"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815675763"}}, "id"=>"873"}}, "commit"=>"Submit", "id"=>"874"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "874"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 874], ["pageable_type", "Article"]] SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00], ["page_id", 873], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 873]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 873]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 873], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 873]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.4ms) Completed 200 OK in 24ms (Views: 15.4ms | ActiveRecord: 3.4ms) Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/875/edit" for 127.0.0.1 at 2013-11-07 13:14:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"875"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "875"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 875], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00], ["pageable_id", 875], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:14:35 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 874]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 874]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 874], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 874]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/874/text_blocks/new?content_block%5Btemp_id%5D=1383815676020" for 127.0.0.1 at 2013-11-07 13:14:36 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815676020"}, "page_id"=>"874"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "874"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 875]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 875], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.3ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.7ms) Started PATCH "/admin/articles/875" for 127.0.0.1 at 2013-11-07 13:14:36 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815676020"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815676020"}}, "id"=>"874"}}, "commit"=>"Submit", "id"=>"875"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "875"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 875], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 874]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 874]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 874], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 874]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.9ms) Completed 200 OK in 22ms (Views: 14.7ms | ActiveRecord: 0.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:01 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:01 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/876/edit" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"876"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "876"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 876], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00], ["pageable_id", 876], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 875]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 875]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 875], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 875]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (35.1ms) Rendered admin/articles/edit.html.haml within layouts/application (59.6ms) Completed 200 OK in 132ms (Views: 95.2ms | ActiveRecord: 4.3ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/redditor/admin/pages/875/video_blocks/new?content_block%5Btemp_id%5D=1383815703372" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815703372"}, "page_id"=>"875"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "875"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 876]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 876], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (17.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (31.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (54.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (61.6ms) Completed 200 OK in 90ms (Views: 68.6ms | ActiveRecord: 0.8ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Started PATCH "/admin/articles/876" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815703372"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815703372"}}, "id"=>"875"}}, "commit"=>"Submit", "id"=>"876"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "876"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 876], ["pageable_type", "Article"]] SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00], ["page_id", 875], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 875]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 875]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 875], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 875]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (19.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.1ms) Rendered admin/articles/edit.html.haml within layouts/application (34.3ms) Completed 200 OK in 47ms (Views: 33.7ms | ActiveRecord: 4.6ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/877/edit" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"877"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "877"]] Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 877], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00], ["pageable_id", 877], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:03 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 876]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 876]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 876], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 876]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (39.9ms) Rendered admin/articles/edit.html.haml within layouts/application (42.0ms) Completed 200 OK in 52ms (Views: 42.3ms | ActiveRecord: 4.3ms) Started GET "/redditor/admin/pages/876/video_blocks/new?content_block%5Btemp_id%5D=1383815703893" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815703893"}, "page_id"=>"876"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "876"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 877]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 877], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (13.7ms) Completed 200 OK in 17ms (Views: 13.5ms | ActiveRecord: 1.5ms) Started PATCH "/admin/articles/877" for 127.0.0.1 at 2013-11-07 13:15:03 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815703893"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1383815703893"}}, "id"=>"876"}}, "commit"=>"Submit", "id"=>"877"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "877"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 877], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 876]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 876]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 876], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 876]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.3ms) Rendered admin/articles/edit.html.haml within layouts/application (15.6ms) Completed 200 OK in 24ms (Views: 17.0ms | ActiveRecord: 0.7ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/878/edit" for 127.0.0.1 at 2013-11-07 13:15:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"878"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "878"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 878], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00], ["pageable_id", 878], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 877]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 877]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 877], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 877]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.0ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 878], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00], ["page_id", 877], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:04 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/878/edit" for 127.0.0.1 at 2013-11-07 13:15:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"878"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "878"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 878], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 877]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 877]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 877], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 877]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (17.2ms) Rendered admin/articles/edit.html.haml within layouts/application (19.5ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 1.7ms) Started DELETE "/redditor/admin/pages/877/video_blocks/455" for 127.0.0.1 at 2013-11-07 13:15:04 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"877", "id"=>"455"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "877"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 877], ["id", "455"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 455]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.3ms) Started GET "/admin/articles/878/edit" for 127.0.0.1 at 2013-11-07 13:15:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"878"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "878"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 878], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 877]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 877]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 877], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 877]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/879/edit" for 127.0.0.1 at 2013-11-07 13:15:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"879"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "879"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 879], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00], ["pageable_id", 879], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 878]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 878]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 878], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 878]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/878/video_blocks/new?content_block%5Btemp_id%5D=1383815706494" for 127.0.0.1 at 2013-11-07 13:15:06 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815706494"}, "page_id"=>"878"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "878"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 879]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 879], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (14.0ms) Completed 200 OK in 17ms (Views: 14.0ms | ActiveRecord: 0.7ms) Started POST "/redditor/admin/pages/878/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1383815706494" for 127.0.0.1 at 2013-11-07 13:15:06 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815706494"}, "page_id"=>"878"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "878"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00], ["page_id", 878], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:06 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 879]] Started GET "/admin/articles/879/edit" for 127.0.0.1 at 2013-11-07 13:15:06 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 879], ["pageable_type", "Article"]] Processing by Admin::ArticlesController#edit as HTML Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Parameters: {"id"=>"879"} Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "879"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.4ms) Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 879], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (52.4ms) Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 878]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 878]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 878], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 878]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (20.9ms) Rendered admin/articles/edit.html.haml within layouts/application (23.1ms) Completed 200 OK in 30ms (Views: 24.1ms | ActiveRecord: 2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (207.6ms) Completed 200 OK in 221ms (Views: 214.1ms | ActiveRecord: 2.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:12 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:12 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/880/edit" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"880"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "880"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 880], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00], ["pageable_id", 880], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 879]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 879]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 879], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 879]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (34.5ms) Rendered admin/articles/edit.html.haml within layouts/application (50.6ms) Completed 200 OK in 118ms (Views: 81.1ms | ActiveRecord: 5.7ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/redditor/admin/pages/879/text_blocks/new?content_block%5Btemp_id%5D=1383815714676" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815714676"}, "page_id"=>"879"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "879"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 880]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 880], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (14.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (53.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (60.7ms) Completed 200 OK in 85ms (Views: 67.9ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Started PATCH "/admin/articles/880" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815714676"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815714676"}}, "id"=>"879"}}, "commit"=>"Submit", "id"=>"880"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "880"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 880], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00], ["page_id", 879], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 879]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 879]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 879], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 879]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (16.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (24.4ms) Rendered admin/articles/edit.html.haml within layouts/application (26.9ms) Completed 200 OK in 38ms (Views: 28.2ms | ActiveRecord: 2.3ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/881/edit" for 127.0.0.1 at 2013-11-07 13:15:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"881"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "881"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 881], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00], ["pageable_id", 881], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:14 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 880]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 880]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 880], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 880]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Rendered admin/articles/edit.html.haml within layouts/application (8.9ms) Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 881], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 07 Nov 2013 09:15:15 UTC +00:00], ["page_id", 880], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:15 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/881/edit" for 127.0.0.1 at 2013-11-07 13:15:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"881"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "881"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 881], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 880]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 880]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 880], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 880]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.0ms) Rendered admin/articles/edit.html.haml within layouts/application (15.5ms) Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 2.0ms) Started DELETE "/redditor/admin/pages/880/text_blocks/506" for 127.0.0.1 at 2013-11-07 13:15:15 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"880", "id"=>"506"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "880"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 880], ["id", "506"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 506]]  (0.8ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.6ms) Started GET "/admin/articles/881/edit" for 127.0.0.1 at 2013-11-07 13:15:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"881"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "881"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 881], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 880]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 880]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 880], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 880]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.0ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms) Article Load (2.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (1.0ms) commit transaction Started GET "/admin/articles/882/edit" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"882"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "882"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 882], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["pageable_id", 882], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 881]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 881]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 881], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 881]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.4ms) Rendered admin/articles/edit.html.haml within layouts/application (37.1ms) Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/881/text_blocks/new?content_block%5Btemp_id%5D=1383815717350" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815717350"}, "page_id"=>"881"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "881"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 882]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 882], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (9.3ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/882" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1383815717350"=>{"position"=>"0", "body"=>"", "temp_id"=>"1383815717350"}}, "id"=>"881"}}, "commit"=>"Submit", "id"=>"882"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "882"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 882], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 881]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 881]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 881], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 881]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.7ms) Rendered admin/articles/edit.html.haml within layouts/application (12.6ms) Completed 200 OK in 21ms (Views: 13.8ms | ActiveRecord: 0.7ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/883/edit" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"883"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "883"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 883], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["pageable_id", 883], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 882]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 882]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 882], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 882]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 15ms (Views: 9.6ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/882/text_blocks/new?content_block%5Btemp_id%5D=1383815717548" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815717548"}, "page_id"=>"882"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "882"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 883]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 883], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/new.js.erb (8.5ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/882/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1383815717548" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1383815717548"}, "page_id"=>"882"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "882"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["page_id", 882], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.9ms) commit transaction Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 883]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 883], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.1ms) Started GET "/admin/articles/883/edit" for 127.0.0.1 at 2013-11-07 13:15:17 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"883"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "883"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 883], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 882]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 882]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 882], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 882]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (14.9ms) Rendered admin/articles/edit.html.haml within layouts/application (18.4ms) Completed 200 OK in 26ms (Views: 20.0ms | ActiveRecord: 0.8ms)  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (1.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["page_id", 883], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.8ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/wrapper.js.coffee (172.6ms) Completed 200 OK in 186ms (Views: 179.3ms | ActiveRecord: 2.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["description", "image name 1"], ["imageable_id", 386], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["description", "image name 2"], ["imageable_id", 386], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["description", "image name 3"], ["imageable_id", 386], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00], ["page_id", 883], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:15:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["height", 480], ["page_id", 883], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 883 [["pageable_type", "Article"], ["pageable_id", 884], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 883]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 883]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 883], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 883]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 386], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (5.5ms) Rendered collection (41.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (48.1ms) Rendered articles/show.html.haml (56.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 884], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 4"], ["imageable_id", 387], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 5"], ["imageable_id", 387], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 6"], ["imageable_id", 387], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 884], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["height", 480], ["page_id", 884], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 884 [["pageable_type", "Article"], ["pageable_id", 885], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 884]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 884]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 884], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 884]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 387], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.8ms) Rendered collection (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 885], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 7"], ["imageable_id", 388], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 8"], ["imageable_id", 388], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 9"], ["imageable_id", 388], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 885], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["height", 480], ["page_id", 885], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 885 [["pageable_type", "Article"], ["pageable_id", 886], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 885]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 885]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 885], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 885]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 388], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 886], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 886 [["pageable_type", "Article"], ["pageable_id", 887], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 886]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 886]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 886], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 886]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["height", 480], ["page_id", 887], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 887 [["pageable_type", "Article"], ["pageable_id", 888], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 887]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 887]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 887], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 887]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 888], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 10"], ["imageable_id", 389], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 11"], ["imageable_id", 389], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 12"], ["imageable_id", 389], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 888 [["pageable_type", "Article"], ["pageable_id", 889], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (3.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 888]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 888]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 888], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 888]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 389], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 889], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 13"], ["imageable_id", 390], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 14"], ["imageable_id", 390], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["description", "image name 15"], ["imageable_id", 390], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["page_id", 889], ["position", 2], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["height", 480], ["page_id", 889], ["position", 3], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 889 [["pageable_type", "Article"], ["pageable_id", 890], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 889]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 889]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 889], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 889]] Article Load (0.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/891/edit" for 127.0.0.1 at 2013-11-07 13:15:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"891"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "891"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 891], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00], ["pageable_id", 891], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:18 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 890]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 890]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 890], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 890]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (7.1ms) Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/890/video_blocks/new?content_block%5Btemp_id%5D=1383815718901" for 127.0.0.1 at 2013-11-07 13:15:18 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815718901"}, "page_id"=>"890"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "890"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 891]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 891], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (21.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (24.4ms) Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-07 13:15:18 +0400 Started PATCH "/admin/articles/891" for 127.0.0.1 at 2013-11-07 13:15:19 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815718901"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815718901"}}, "id"=>"890"}}, "commit"=>"Submit", "id"=>"891"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "891"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 891], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["page_id", 890], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["youtube", "11111111111"]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 890]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 890]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 890], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 890]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.3ms) Completed 200 OK in 32ms (Views: 25.4ms | ActiveRecord: 2.0ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/892/edit" for 127.0.0.1 at 2013-11-07 13:15:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"892"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "892"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 892], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["pageable_id", 892], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 891]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 891]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 891], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 891]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.2ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 2.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 892], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["page_id", 891], ["position", 1], ["updated_at", Thu, 07 Nov 2013 09:15:19 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/892/edit" for 127.0.0.1 at 2013-11-07 13:15:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"892"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "892"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 892], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 891]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 891]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 891], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 891]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.5ms) Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/891/video_blocks/463" for 127.0.0.1 at 2013-11-07 13:15:19 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"891", "id"=>"463"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "891"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 891], ["id", "463"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 463]]  (0.9ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.6ms) Started GET "/admin/articles/892/edit" for 127.0.0.1 at 2013-11-07 13:15:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"892"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "892"]] Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 892], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 891]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 891]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 891], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 891]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.8ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 1.0ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00]]  (1.1ms) commit transaction Started GET "/admin/articles/893/edit" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"893"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "893"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 893], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["pageable_id", 893], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00]]  (1.2ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 892]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 892]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 892], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 892]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.4ms) Completed 200 OK in 20ms (Views: 10.3ms | ActiveRecord: 3.2ms) Started GET "/redditor/admin/pages/892/video_blocks/new?content_block%5Btemp_id%5D=1383815721645" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815721645"}, "page_id"=>"892"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "892"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 893]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 893], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.1ms) Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/893" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1383815721645"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1383815721645"}}, "id"=>"892"}}, "commit"=>"Submit", "id"=>"893"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "893"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 893], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 892]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 892]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 892], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 892]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.7ms) Completed 200 OK in 24ms (Views: 17.4ms | ActiveRecord: 0.8ms) Article Load (2.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/894/edit" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"894"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "894"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 894], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["pageable_id", 894], ["pageable_type", "Article"], ["updated_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 893]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 893]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 893], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 893]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.3ms) Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 2.2ms) Started GET "/redditor/admin/pages/893/video_blocks/new?content_block%5Btemp_id%5D=1383815721882" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1383815721882"}, "page_id"=>"893"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "893"]] Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 894]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 894], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (15.3ms) Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 0.7ms) Started POST "/redditor/admin/pages/893/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1383815721882" for 127.0.0.1 at 2013-11-07 13:15:21 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1383815721882"}, "page_id"=>"893"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "893"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["page_id", 893], ["position", 0], ["updated_at", Thu, 07 Nov 2013 09:15:21 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 894]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 894], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (16.1ms) Started GET "/admin/articles/894/edit" for 127.0.0.1 at 2013-11-07 13:15:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"894"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "894"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 894], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 893]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 893]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 893], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 893]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.9ms) Completed 200 OK in 30ms (Views: 27.3ms | ActiveRecord: 0.8ms) Completed 200 OK in 158ms (Views: 151.3ms | ActiveRecord: 3.4ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (5.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["page_id", 894], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 1"], ["imageable_id", 391], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 2"], ["imageable_id", 391], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 3"], ["imageable_id", 391], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["page_id", 894], ["position", 2], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["height", 480], ["page_id", 894], ["position", 3], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]] SQL (1.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 894 [["pageable_type", "Article"], ["pageable_id", 895], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 894]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 894]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 894], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 894]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 391], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (32.9ms) Rendered collection (66.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (88.4ms) Rendered articles/show.html.haml (98.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["page_id", 895], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 4"], ["imageable_id", 392], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 5"], ["imageable_id", 392], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["description", "image name 6"], ["imageable_id", 392], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["page_id", 895], ["position", 2], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["height", 480], ["page_id", 895], ["position", 3], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 895 [["pageable_type", "Article"], ["pageable_id", 896], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 895]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 895]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 895], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 895]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 392], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00], ["page_id", 896], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:48 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["description", "image name 7"], ["imageable_id", 393], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["description", "image name 8"], ["imageable_id", 393], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["description", "image name 9"], ["imageable_id", 393], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["page_id", 896], ["position", 2], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["height", 480], ["page_id", 896], ["position", 3], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 896 [["pageable_type", "Article"], ["pageable_id", 897], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 896]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 896]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 896], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 896]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 393], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.2ms) Rendered collection (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (7.9ms) Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:49 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/898/edit" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"898"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "898"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 898], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:51 UTC +00:00], ["pageable_id", 898], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 897]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 897]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 897], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 897]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.9ms) Completed 200 OK in 81ms (Views: 70.8ms | ActiveRecord: 3.7ms) Started GET "/assets/redditor/application.css" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/redditor/admin/pages/897/video_blocks/new?content_block%5Btemp_id%5D=1384463211753" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463211753"}, "page_id"=>"897"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "897"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 898]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 898], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (31.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (50.2ms) Completed 200 OK in 69ms (Views: 64.8ms | ActiveRecord: 1.1ms) Started GET "/assets/redditor/add_video_big.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Started POST "/redditor/admin/pages/897/video_blocks?content_block%5Bposition%5D=0&content_block%5Byoutube%5D=11111111111&content_block%5Bwidth%5D=&content_block%5Bheight%5D=&content_block%5Btemp_id%5D=1384463211753" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Processing by Redditor::Admin::VideoBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1384463211753"}, "page_id"=>"897"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "897"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:51 UTC +00:00], ["page_id", 897], ["position", 0], ["updated_at", Thu, 14 Nov 2013 21:06:51 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 898]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 898], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (10.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (13.7ms) Started GET "/admin/articles/898/edit" for 127.0.0.1 at 2013-11-15 01:06:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"898"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "898"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 898], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 897]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 897]] Redditor::Image Load (0.4ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 897], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 897]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (12.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (22.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (32.7ms) Completed 200 OK in 42ms (Views: 37.5ms | ActiveRecord: 2.3ms) Completed 200 OK in 183ms (Views: 178.8ms | ActiveRecord: 1.6ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/899/edit" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"899"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "899"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 899], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["pageable_id", 899], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 898]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 898]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 898], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 898]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.9ms) Completed 200 OK in 16ms (Views: 10.0ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/898/video_blocks/new?content_block%5Btemp_id%5D=1384463212407" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463212407"}, "page_id"=>"898"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "898"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 899]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 899], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (12.5ms) Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/899" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1384463212407"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1384463212407"}}, "id"=>"898"}}, "commit"=>"Submit", "id"=>"899"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "899"]]  (0.0ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 899], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["page_id", 898], ["position", 0], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 898]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 898]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 898], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 898]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.7ms) Completed 200 OK in 28ms (Views: 19.4ms | ActiveRecord: 3.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/900/edit" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"900"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "900"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 900], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["pageable_id", 900], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 899]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 899]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 899], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 899]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (6.1ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 2.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 900], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["page_id", 899], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:52 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/900/edit" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"900"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "900"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 900], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 899]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 899]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 899], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 899]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (15.5ms) Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.8ms) Started DELETE "/redditor/admin/pages/899/video_blocks/470" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"899", "id"=>"470"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "899"]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 899], ["id", "470"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 470]]  (2.3ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/900/edit" for 127.0.0.1 at 2013-11-15 01:06:52 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"900"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "900"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 900], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 899]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 899]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 899], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 899]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/901/edit" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"901"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "901"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 901], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["pageable_id", 901], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 900]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 900]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 900], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 900]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.5ms) Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/900/video_blocks/new?content_block%5Btemp_id%5D=1384463215169" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463215169"}, "page_id"=>"900"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "900"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 901]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 901], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (11.7ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/901" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1384463215169"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1384463215169"}}, "id"=>"900"}}, "commit"=>"Submit", "id"=>"901"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "901"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 901], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 900]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 900]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 900], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 900]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (13.6ms) Completed 200 OK in 24ms (Views: 16.8ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (2.1ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["page_id", 901], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 10"], ["imageable_id", 394], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 11"], ["imageable_id", 394], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 12"], ["imageable_id", 394], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["page_id", 901], ["position", 2], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["height", 480], ["page_id", 901], ["position", 3], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 901 [["pageable_type", "Article"], ["pageable_id", 902], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 901]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 901]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 901], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 901]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["page_id", 902], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 902 [["pageable_type", "Article"], ["pageable_id", 903], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 902]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 902]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 902], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 902]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["height", 480], ["page_id", 903], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 903 [["pageable_type", "Article"], ["pageable_id", 904], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 903]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 903]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 903], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 903]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["page_id", 904], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 13"], ["imageable_id", 395], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 14"], ["imageable_id", 395], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["description", "image name 15"], ["imageable_id", 395], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 904 [["pageable_type", "Article"], ["pageable_id", 905], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 904]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 904]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 904], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 904]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 395], ["imageable_type", "Redditor::SliderBlock"]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/906/edit" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"906"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "906"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 906], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["pageable_id", 906], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 905]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 905]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 905], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 905]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (4.7ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/905/text_blocks/new?content_block%5Btemp_id%5D=1384463215704" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463215704"}, "page_id"=>"905"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "905"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 906]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 906], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (15.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (19.1ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/add_txt_big.png" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Started POST "/redditor/admin/pages/905/text_blocks?content_block%5Bposition%5D=0&content_block%5Bbody%5D=test+text+block&content_block%5Btemp_id%5D=1384463215704" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Redditor::Admin::TextBlocksController#create as JS Parameters: {"content_block"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1384463215704"}, "page_id"=>"905"} Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "905"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["page_id", 905], ["position", 0], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (1.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 906]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 906], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (10.8ms) Started GET "/admin/articles/906/edit" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"906"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "906"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 906], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 905]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 905]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 905], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 905]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (12.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (21.8ms) Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.8ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/907/edit" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"907"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "907"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 907], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00], ["pageable_id", 907], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:55 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 906]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 906]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 906], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 906]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.3ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 1.9ms) Completed 200 OK in 159ms (Views: 152.0ms | ActiveRecord: 2.5ms) Started GET "/redditor/admin/pages/906/text_blocks/new?content_block%5Btemp_id%5D=1384463215995" for 127.0.0.1 at 2013-11-15 01:06:55 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463215995"}, "page_id"=>"906"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "906"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 907]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 907], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (7.7ms) Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/907" for 127.0.0.1 at 2013-11-15 01:06:56 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1384463215995"=>{"position"=>"0", "body"=>"test text block", "temp_id"=>"1384463215995"}}, "id"=>"906"}}, "commit"=>"Submit", "id"=>"907"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "907"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 907], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test text block"], ["created_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00], ["page_id", 906], ["position", 0], ["updated_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 906]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 906]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 906], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 906]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.3ms) Completed 200 OK in 24ms (Views: 15.7ms | ActiveRecord: 3.5ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/908/edit" for 127.0.0.1 at 2013-11-15 01:06:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"908"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "908"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 908], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00], ["pageable_id", 908], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 907]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 907]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 907], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 907]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (39.0ms) Completed 200 OK in 47ms (Views: 42.3ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 908], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00], ["page_id", 907], ["position", 1], ["updated_at", Thu, 14 Nov 2013 21:06:56 UTC +00:00]]  (1.5ms) commit transaction Started GET "/admin/articles/908/edit" for 127.0.0.1 at 2013-11-15 01:06:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"908"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "908"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 908], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 907]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 907]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 907], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 907]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (9.9ms) Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/907/text_blocks/520" for 127.0.0.1 at 2013-11-15 01:06:56 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"907", "id"=>"520"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "907"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 907], ["id", "520"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 520]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.3ms) Started GET "/admin/articles/908/edit" for 127.0.0.1 at 2013-11-15 01:06:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"908"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "908"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 908], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 907]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 907]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 907], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 907]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.2ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:58 UTC +00:00], ["title", "Test article"], ["updated_at", Thu, 14 Nov 2013 21:06:58 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/909/edit" for 127.0.0.1 at 2013-11-15 01:06:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"909"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "909"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 909], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 14 Nov 2013 21:06:58 UTC +00:00], ["pageable_id", 909], ["pageable_type", "Article"], ["updated_at", Thu, 14 Nov 2013 21:06:58 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 908]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 908]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 908], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 908]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/908/text_blocks/new?content_block%5Btemp_id%5D=1384463218478" for 127.0.0.1 at 2013-11-15 01:06:58 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1384463218478"}, "page_id"=>"908"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "908"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 909]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 909], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_wrapper.haml (8.2ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/909" for 127.0.0.1 at 2013-11-15 01:06:58 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1384463218478"=>{"position"=>"0", "body"=>"", "temp_id"=>"1384463218478"}}, "id"=>"908"}}, "commit"=>"Submit", "id"=>"909"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "909"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 909], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 908]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 908]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 908], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 908]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_text_block.haml (2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/pages/_page.haml (11.4ms) Completed 200 OK in 25ms (Views: 15.7ms | ActiveRecord: 0.8ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (7.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00], ["page_id", 909], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00]] SQL (1.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 909 [["pageable_type", "Article"], ["pageable_id", 910], ["updated_at", Wed, 18 Dec 2013 05:23:03 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 909]] Redditor::VideoBlock Load (0.7ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 909]] Redditor::Image Load (0.9ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 909], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.6ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 909]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["page_id", 910], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 1"], ["imageable_id", 396], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 2"], ["imageable_id", 396], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 3"], ["imageable_id", 396], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 910 [["pageable_type", "Article"], ["pageable_id", 911], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 910]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 910]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 910], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 910]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 396], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["height", 480], ["page_id", 911], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 911 [["pageable_type", "Article"], ["pageable_id", 912], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 911]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 911]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 911], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 911]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["page_id", 912], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 4"], ["imageable_id", 397], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 5"], ["imageable_id", 397], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["description", "image name 6"], ["imageable_id", 397], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["page_id", 912], ["position", 2], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["height", 480], ["page_id", 912], ["position", 3], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 912 [["pageable_type", "Article"], ["pageable_id", 913], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 912]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 912]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 912], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 912]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:04 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/914/edit" for 127.0.0.1 at 2013-12-18 09:23:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"914"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "914"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 914], ["pageable_type", "Article"]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:06 UTC +00:00], ["pageable_id", 914], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:06 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 913]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 913]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 913], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 913]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.6ms) Rendered admin/articles/edit.html.haml within layouts/application (44.0ms) Completed 200 OK in 1452ms (Views: 1440.2ms | ActiveRecord: 4.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/redditor/admin/pages/913/text_blocks/new?content_block%5Btemp_id%5D=1387344188417" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344188417"}, "page_id"=>"913"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "913"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 914]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 914], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (25.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (37.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (43.7ms) Completed 200 OK in 53ms (Views: 50.0ms | ActiveRecord: 0.5ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 09:23:08 +0400 Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/915/edit" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"915"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "915"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 915], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00], ["pageable_id", 915], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 914]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 914]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 914], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 914]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Started GET "/redditor/admin/pages/914/text_blocks/new?content_block%5Btemp_id%5D=1387344190554" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344190554"}, "page_id"=>"914"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "914"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 915]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 915], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (6.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.6ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/915" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387344190554"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387344190554"}}, "id"=>"914"}}, "commit"=>"Submit", "id"=>"915"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "915"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 915], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 914]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 914]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 914], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 914]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (32.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (34.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (41.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (46.9ms) Rendered admin/articles/edit.html.haml within layouts/application (50.4ms) Completed 200 OK in 60ms (Views: 51.6ms | ActiveRecord: 0.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/916/edit" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"916"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "916"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 916], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00], ["pageable_id", 916], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 915]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 915]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 915], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 915]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 916], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00], ["page_id", 915], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:10 UTC +00:00]]  (1.4ms) commit transaction Started GET "/admin/articles/916/edit" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"916"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "916"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 916], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 915]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 915]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 915], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 915]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.8ms) Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 1.9ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:10 +0400 Started DELETE "/redditor/admin/pages/915/text_blocks/523" for 127.0.0.1 at 2013-12-18 09:23:11 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"915", "id"=>"523"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "915"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 915], ["id", "523"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 523]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.9ms) Started GET "/admin/articles/916/edit" for 127.0.0.1 at 2013-12-18 09:23:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"916"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "916"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 916], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 915]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 915]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 915], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 915]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:11 +0400 Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:13 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:13 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/917/edit" for 127.0.0.1 at 2013-12-18 09:23:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"917"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "917"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 917], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:13 UTC +00:00], ["pageable_id", 917], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:13 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 916]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 916]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 916], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 916]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:13 +0400 Started GET "/redditor/admin/pages/916/text_blocks/new?content_block%5Btemp_id%5D=1387344193237" for 127.0.0.1 at 2013-12-18 09:23:13 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344193237"}, "page_id"=>"916"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "916"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 917]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 917], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.5ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.3ms) Article Load (7.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/918/edit" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"918"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "918"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 918], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["pageable_id", 918], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 917]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 917]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 917], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 917]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (37.8ms) Completed 200 OK in 44ms (Views: 38.7ms | ActiveRecord: 1.9ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Started GET "/redditor/admin/pages/917/video_blocks/new?content_block%5Btemp_id%5D=1387344195413" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344195413"}, "page_id"=>"917"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "917"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 918]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 918], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (23.0ms) Completed 200 OK in 26ms (Views: 23.0ms | ActiveRecord: 0.7ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Started PATCH "/admin/articles/918" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387344195413"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387344195413"}}, "id"=>"917"}}, "commit"=>"Submit", "id"=>"918"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "918"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 918], ["pageable_type", "Article"]] SQL (1.1ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["page_id", 917], ["position", 0], ["updated_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 917]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 917]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 917], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 917]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (13.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (19.3ms) Rendered admin/articles/edit.html.haml within layouts/application (21.3ms) Completed 200 OK in 31ms (Views: 22.1ms | ActiveRecord: 2.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/919/edit" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"919"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "919"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 919], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00], ["pageable_id", 919], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:15 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 918]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 918]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 918], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 918]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.9ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Started GET "/redditor/admin/pages/918/video_blocks/new?content_block%5Btemp_id%5D=1387344195903" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344195903"}, "page_id"=>"918"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "918"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 919]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 919], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (11.5ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/919" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387344195903"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387344195903"}}, "id"=>"918"}}, "commit"=>"Submit", "id"=>"919"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "919"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 919], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 918]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 918]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 918], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 918]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.3ms) Rendered admin/articles/edit.html.haml within layouts/application (16.8ms) Completed 200 OK in 25ms (Views: 17.8ms | ActiveRecord: 0.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:15 +0400 Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/920/edit" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"920"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "920"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 920], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00], ["pageable_id", 920], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 919]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 919]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 919], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 919]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 920], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00], ["page_id", 919], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:16 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/920/edit" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"920"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "920"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 920], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 919]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 919]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 919], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 919]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.7ms) Rendered admin/articles/edit.html.haml within layouts/application (16.0ms) Completed 200 OK in 20ms (Views: 17.1ms | ActiveRecord: 0.7ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Started DELETE "/redditor/admin/pages/919/video_blocks/476" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"919", "id"=>"476"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "919"]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 919], ["id", "476"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 476]]  (1.9ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.8ms) Started GET "/admin/articles/920/edit" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"920"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "920"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 920], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 919]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 919]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 919], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 919]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.6ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:16 +0400 Article Load (3.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/921/edit" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"921"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "921"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 921], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["pageable_id", 921], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 920]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 920]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 920], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 920]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.7ms) Rendered admin/articles/edit.html.haml within layouts/application (7.6ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Started GET "/redditor/admin/pages/920/video_blocks/new?content_block%5Btemp_id%5D=1387344198499" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387344198499"}, "page_id"=>"920"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "920"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 921]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 921], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (11.1ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/920/video_blocks" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387344198499"}, "page_id"=>"920"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "920"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["page_id", 920], ["position", 0], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 921]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 921], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (25.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (33.2ms) Started GET "/admin/articles/921/edit" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"921"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "921"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 921], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 920]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 920]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 920], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 920]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.2ms) Rendered admin/articles/edit.html.haml within layouts/application (19.3ms) Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 0.8ms) Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 09:23:18 +0400 Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (164.6ms) Completed 200 OK in 176ms (Views: 170.6ms | ActiveRecord: 1.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["page_id", 921], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["description", "image name 7"], ["imageable_id", 398], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["description", "image name 8"], ["imageable_id", 398], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["description", "image name 9"], ["imageable_id", 398], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["page_id", 921], ["position", 2], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["height", 480], ["page_id", 921], ["position", 3], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 921 [["pageable_type", "Article"], ["pageable_id", 922], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.9ms) commit transaction Rendered articles/show.html.haml (13.2ms)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00], ["page_id", 922], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:18 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 10"], ["imageable_id", 399], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 11"], ["imageable_id", 399], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 12"], ["imageable_id", 399], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["page_id", 922], ["position", 2], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["height", 480], ["page_id", 922], ["position", 3], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 922 [["pageable_type", "Article"], ["pageable_id", 923], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["page_id", 923], ["position", 1], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 13"], ["imageable_id", 400], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 14"], ["imageable_id", 400], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["description", "image name 15"], ["imageable_id", 400], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["page_id", 923], ["position", 2], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["height", 480], ["page_id", 923], ["position", 3], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 923 [["pageable_type", "Article"], ["pageable_id", 924], ["updated_at", Wed, 18 Dec 2013 05:23:19 UTC +00:00]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (7.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["page_id", 924], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]] SQL (1.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 924 [["pageable_type", "Article"], ["pageable_id", 925], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 924]] Redditor::VideoBlock Load (0.8ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 924]] Redditor::Image Load (0.8ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 924], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.4ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 924]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["page_id", 925], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 1"], ["imageable_id", 401], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 2"], ["imageable_id", 401], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 3"], ["imageable_id", 401], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["page_id", 925], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["height", 480], ["page_id", 925], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 925 [["pageable_type", "Article"], ["pageable_id", 926], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 925]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 925]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 925], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 925]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["height", 480], ["page_id", 926], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 926 [["pageable_type", "Article"], ["pageable_id", 927], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 926]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 926]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 926], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 926]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["page_id", 927], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 4"], ["imageable_id", 402], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 5"], ["imageable_id", 402], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["description", "image name 6"], ["imageable_id", 402], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 927 [["pageable_type", "Article"], ["pageable_id", 928], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 927]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 927]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 927], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 927]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 402], ["imageable_type", "Redditor::SliderBlock"]] Article Load (1.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:11 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/929/edit" for 127.0.0.1 at 2013-12-18 12:08:14 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"929"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "929"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 929], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:14 UTC +00:00], ["pageable_id", 929], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:14 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 928]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 928]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 928], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 928]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.5ms) Rendered admin/articles/edit.html.haml within layouts/application (41.5ms) Completed 200 OK in 205ms (Views: 194.8ms | ActiveRecord: 3.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:08:14 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:08:14 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started GET "/redditor/admin/pages/928/video_blocks/new?content_block%5Btemp_id%5D=1387354095115" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354095115"}, "page_id"=>"928"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "928"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 929]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 929], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (15.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (28.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (40.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (47.2ms) Completed 200 OK in 58ms (Views: 53.8ms | ActiveRecord: 1.3ms) Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Started PATCH "/admin/articles/929" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354095115"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354095115"}}, "id"=>"928"}}, "commit"=>"Submit", "id"=>"929"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "929"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 929], ["pageable_type", "Article"]] SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["page_id", 928], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 928]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 928]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 928], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 928]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (21.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (28.1ms) Rendered admin/articles/edit.html.haml within layouts/application (30.1ms) Completed 200 OK in 39ms (Views: 30.4ms | ActiveRecord: 3.0ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/930/edit" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"930"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "930"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 930], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["pageable_id", 930], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 929]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 929]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 929], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 929]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.6ms) Started GET "/redditor/admin/pages/929/video_blocks/new?content_block%5Btemp_id%5D=1387354095679" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354095679"}, "page_id"=>"929"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "929"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 930]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 930], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.5ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/929/video_blocks" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354095679"}, "page_id"=>"929"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "929"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["page_id", 929], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["youtube", "11111111111"]]  (2.0ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 930]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 930], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (14.9ms) Started GET "/admin/articles/930/edit" for 127.0.0.1 at 2013-12-18 12:08:15 +0400 Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (28.6ms) Processing by Admin::ArticlesController#edit as HTML Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (38.4ms) Parameters: {"id"=>"930"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "930"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 930], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 929]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 929]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 929], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 929]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.1ms) Rendered admin/articles/edit.html.haml within layouts/application (15.0ms) Completed 200 OK in 48ms (Views: 15.8ms | ActiveRecord: 0.6ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:15 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/931/edit" for 127.0.0.1 at 2013-12-18 12:08:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"931"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "931"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 931], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:16 UTC +00:00], ["pageable_id", 931], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:16 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 930]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 930]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 930], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 930]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (286.8ms) Rendered admin/articles/edit.html.haml within layouts/application (15.5ms) Completed 200 OK in 301ms (Views: 294.4ms | ActiveRecord: 3.3ms) Completed 200 OK in 23ms (Views: 17.3ms | ActiveRecord: 2.0ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 931], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:16 UTC +00:00], ["page_id", 930], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:16 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/931/edit" for 127.0.0.1 at 2013-12-18 12:08:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"931"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "931"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 931], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 930]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 930]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 930], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 930]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.3ms) Rendered admin/articles/edit.html.haml within layouts/application (18.4ms) Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.0ms) Started DELETE "/redditor/admin/pages/930/video_blocks/485" for 127.0.0.1 at 2013-12-18 12:08:16 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"930", "id"=>"485"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "930"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 930], ["id", "485"]]  (0.1ms) begin transaction SQL (2.2ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 485]]  (0.8ms) commit transaction Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 3.4ms) Started GET "/admin/articles/931/edit" for 127.0.0.1 at 2013-12-18 12:08:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"931"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "931"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 931], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 930]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 930]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 930], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 930]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.9ms) Rendered admin/articles/edit.html.haml within layouts/application (8.3ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.7ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/932/edit" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"932"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "932"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 932], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00], ["pageable_id", 932], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 931]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 931]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 931], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 931]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/931/video_blocks/new?content_block%5Btemp_id%5D=1387354098453" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354098453"}, "page_id"=>"931"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "931"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 932]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 932], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (10.5ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/932" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354098453"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387354098453"}}, "id"=>"931"}}, "commit"=>"Submit", "id"=>"932"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "932"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 932], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 931]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 931]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 931], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 931]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.2ms) Rendered admin/articles/edit.html.haml within layouts/application (18.1ms) Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 0.8ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/933/edit" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"933"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "933"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 933], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00], ["pageable_id", 933], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:18 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 932]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 932]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 932], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 932]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 46ms (Views: 8.4ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/932/text_blocks/new?content_block%5Btemp_id%5D=1387354098709" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354098709"}, "page_id"=>"932"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "932"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 933]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 933], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (2.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (16.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (17.2ms) Completed 200 OK in 20ms (Views: 17.5ms | ActiveRecord: 0.5ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:08:18 +0400 Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:20 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/934/edit" for 127.0.0.1 at 2013-12-18 12:08:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"934"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "934"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 934], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:20 UTC +00:00], ["pageable_id", 934], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:20 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 933]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 933]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 933], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 933]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/933/text_blocks/new?content_block%5Btemp_id%5D=1387354100858" for 127.0.0.1 at 2013-12-18 12:08:20 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354100858"}, "page_id"=>"933"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "933"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 934]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 934], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.2ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/935/edit" for 127.0.0.1 at 2013-12-18 12:08:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"935"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "935"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 935], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00], ["pageable_id", 935], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 934]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 934]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 934], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 934]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Rendered admin/articles/edit.html.haml within layouts/application (7.4ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 935], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00], ["page_id", 934], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:22 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/935/edit" for 127.0.0.1 at 2013-12-18 12:08:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"935"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "935"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 935], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 934]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 934]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 934], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 934]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (12.3ms) Rendered admin/articles/edit.html.haml within layouts/application (14.9ms) Completed 200 OK in 50ms (Views: 47.6ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/934/text_blocks/529" for 127.0.0.1 at 2013-12-18 12:08:23 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"934", "id"=>"529"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "934"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 934], ["id", "529"]]  (0.1ms) begin transaction SQL (1.0ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 529]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.1ms) Started GET "/admin/articles/935/edit" for 127.0.0.1 at 2013-12-18 12:08:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"935"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "935"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 935], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 934]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 934]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 934], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 934]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/936/edit" for 127.0.0.1 at 2013-12-18 12:08:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"936"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "936"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 936], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["pageable_id", 936], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 935]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 935]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 935], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 935]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/935/text_blocks/new?content_block%5Btemp_id%5D=1387354105362" for 127.0.0.1 at 2013-12-18 12:08:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354105362"}, "page_id"=>"935"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "935"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 936]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 936], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.4ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/936" for 127.0.0.1 at 2013-12-18 12:08:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387354105362"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387354105362"}}, "id"=>"935"}}, "commit"=>"Submit", "id"=>"936"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "936"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 936], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 935]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 935]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 935], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 935]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (9.2ms) Rendered admin/articles/edit.html.haml within layouts/application (12.0ms) Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 0.9ms)  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["page_id", 936], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 7"], ["imageable_id", 403], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 8"], ["imageable_id", 403], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 9"], ["imageable_id", 403], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["page_id", 936], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["height", 480], ["page_id", 936], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 936 [["pageable_type", "Article"], ["pageable_id", 937], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 936]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 936]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 936], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 936]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 403], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (5.0ms) Rendered collection (34.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (39.5ms) Rendered articles/show.html.haml (46.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["page_id", 937], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 10"], ["imageable_id", 404], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 11"], ["imageable_id", 404], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["description", "image name 12"], ["imageable_id", 404], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["page_id", 937], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["height", 480], ["page_id", 937], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 937 [["pageable_type", "Article"], ["pageable_id", 938], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 937]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 937]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 937], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 937]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 404], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00], ["page_id", 938], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:08:25 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["description", "image name 13"], ["imageable_id", 405], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["description", "image name 14"], ["imageable_id", 405], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["description", "image name 15"], ["imageable_id", 405], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["page_id", 938], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["height", 480], ["page_id", 938], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 938 [["pageable_type", "Article"], ["pageable_id", 939], ["updated_at", Wed, 18 Dec 2013 08:08:26 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 938]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 938]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 938], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 938]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 405], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (4.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:41 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/940/edit" for 127.0.0.1 at 2013-12-18 12:16:43 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"940"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "940"]] Redditor::Page Load (0.9ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 940], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:43 UTC +00:00], ["pageable_id", 940], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:43 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (1.0ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 939]] Redditor::VideoBlock Load (0.9ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 939]] Redditor::Image Load (0.5ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 939], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.6ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 939]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (38.7ms) Rendered admin/articles/edit.html.haml within layouts/application (60.6ms) Completed 200 OK in 213ms (Views: 174.4ms | ActiveRecord: 8.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:16:43 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:16:43 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/redditor/admin/pages/939/text_blocks/new?content_block%5Btemp_id%5D=1387354604158" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354604158"}, "page_id"=>"939"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "939"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 940]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 940], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (22.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (36.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (42.5ms) Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 1.3ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:16:44 +0400 Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/941/edit" for 127.0.0.1 at 2013-12-18 12:16:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"941"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "941"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 941], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00], ["pageable_id", 941], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 940]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 940]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 940], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 940]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 2.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 941], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00], ["page_id", 940], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:46 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/941/edit" for 127.0.0.1 at 2013-12-18 12:16:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"941"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "941"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 941], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 940]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 940]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 940], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 940]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.0ms) Rendered admin/articles/edit.html.haml within layouts/application (22.4ms) Completed 200 OK in 27ms (Views: 22.6ms | ActiveRecord: 2.0ms) Started DELETE "/redditor/admin/pages/940/text_blocks/533" for 127.0.0.1 at 2013-12-18 12:16:46 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"940", "id"=>"533"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "940"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 940], ["id", "533"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 533]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.4ms) Started GET "/admin/articles/941/edit" for 127.0.0.1 at 2013-12-18 12:16:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"941"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "941"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 941], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 940]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 940]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 940], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 940]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.8ms) Rendered admin/articles/edit.html.haml within layouts/application (8.8ms) Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 1.6ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/942/edit" for 127.0.0.1 at 2013-12-18 12:16:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"942"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "942"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 942], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00], ["pageable_id", 942], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 941]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 941]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 941], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 941]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.3ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/941/text_blocks/new?content_block%5Btemp_id%5D=1387354608646" for 127.0.0.1 at 2013-12-18 12:16:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354608646"}, "page_id"=>"941"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "941"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 942]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 942], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.0ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/942" for 127.0.0.1 at 2013-12-18 12:16:48 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387354608646"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387354608646"}}, "id"=>"941"}}, "commit"=>"Submit", "id"=>"942"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "942"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 942], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 941]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 941]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 941], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 941]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (10.5ms) Rendered admin/articles/edit.html.haml within layouts/application (13.8ms) Completed 200 OK in 25ms (Views: 14.7ms | ActiveRecord: 1.1ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/943/edit" for 127.0.0.1 at 2013-12-18 12:16:48 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"943"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "943"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 943], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00], ["pageable_id", 943], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:48 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 942]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 942]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 942], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 942]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/942/text_blocks/new?content_block%5Btemp_id%5D=1387354608953" for 127.0.0.1 at 2013-12-18 12:16:48 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354608953"}, "page_id"=>"942"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "942"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 943]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 943], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (6.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.2ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.3ms) Article Load (7.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00]]  (5.0ms) commit transaction Started GET "/admin/articles/944/edit" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"944"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "944"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 944], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["pageable_id", 944], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 943]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 943]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 943], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 943]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/943/video_blocks/new?content_block%5Btemp_id%5D=1387354611085" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354611085"}, "page_id"=>"943"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "943"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 944]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 944], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (17.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (22.3ms) Completed 200 OK in 44ms (Views: 22.9ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Started PATCH "/admin/articles/944" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354611085"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354611085"}}, "id"=>"943"}}, "commit"=>"Submit", "id"=>"944"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "944"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 944], ["pageable_type", "Article"]] SQL (1.0ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["page_id", 943], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 943]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 943]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 943], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 943]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (18.5ms) Rendered admin/articles/edit.html.haml within layouts/application (21.0ms) Completed 200 OK in 30ms (Views: 21.9ms | ActiveRecord: 2.5ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00]]  (0.9ms) commit transaction Started GET "/admin/articles/945/edit" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"945"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "945"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 945], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["pageable_id", 945], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 944]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 944]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 944], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 944]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 945], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["page_id", 944], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:51 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/945/edit" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"945"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "945"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 945], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 944]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 944]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 944], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 944]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.9ms) Rendered admin/articles/edit.html.haml within layouts/application (15.8ms) Completed 200 OK in 19ms (Views: 16.1ms | ActiveRecord: 1.3ms) Started DELETE "/redditor/admin/pages/944/video_blocks/490" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"944", "id"=>"490"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "944"]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 944], ["id", "490"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 490]]  (0.6ms) commit transaction Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.3ms) Started GET "/admin/articles/945/edit" for 127.0.0.1 at 2013-12-18 12:16:51 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"945"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "945"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 945], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 944]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 944]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 944], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 944]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:53 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:53 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/946/edit" for 127.0.0.1 at 2013-12-18 12:16:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"946"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "946"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 946], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:53 UTC +00:00], ["pageable_id", 946], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:53 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 945]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 945]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 945], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 945]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/945/video_blocks/new?content_block%5Btemp_id%5D=1387354613931" for 127.0.0.1 at 2013-12-18 12:16:53 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354613931"}, "page_id"=>"945"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "945"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 946]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 946], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (11.5ms) Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/946" for 127.0.0.1 at 2013-12-18 12:16:53 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354613931"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387354613931"}}, "id"=>"945"}}, "commit"=>"Submit", "id"=>"946"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "946"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 946], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 945]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 945]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 945], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 945]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.1ms) Rendered admin/articles/edit.html.haml within layouts/application (17.5ms) Completed 200 OK in 25ms (Views: 18.4ms | ActiveRecord: 0.8ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/947/edit" for 127.0.0.1 at 2013-12-18 12:16:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"947"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "947"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 947], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["pageable_id", 947], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 946]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 946]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 946], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 946]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/946/video_blocks/new?content_block%5Btemp_id%5D=1387354614173" for 127.0.0.1 at 2013-12-18 12:16:54 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354614173"}, "page_id"=>"946"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "946"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 947]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 947], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (11.7ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/946/video_blocks" for 127.0.0.1 at 2013-12-18 12:16:54 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354614173"}, "page_id"=>"946"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "946"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 946], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 947]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 947], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (25.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (34.3ms) Started GET "/admin/articles/947/edit" for 127.0.0.1 at 2013-12-18 12:16:54 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"947"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "947"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 947], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 946]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 946]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 946], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 946]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (12.8ms) Rendered admin/articles/edit.html.haml within layouts/application (14.7ms) Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 947], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (255.6ms)  (0.0ms) begin transaction Completed 200 OK in 267ms (Views: 261.6ms | ActiveRecord: 3.2ms) SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 947 [["pageable_type", "Article"], ["pageable_id", 948], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 947]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 947]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 947], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 947]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["height", 480], ["page_id", 948], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 948 [["pageable_type", "Article"], ["pageable_id", 949], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 948]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 948]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 948], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 948]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 949], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 1"], ["imageable_id", 406], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 2"], ["imageable_id", 406], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 3"], ["imageable_id", 406], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 949 [["pageable_type", "Article"], ["pageable_id", 950], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 949]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 949]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 949], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 949]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 406], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 950], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 4"], ["imageable_id", 407], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 5"], ["imageable_id", 407], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 6"], ["imageable_id", 407], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 950], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["height", 480], ["page_id", 950], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 950 [["pageable_type", "Article"], ["pageable_id", 951], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 950]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 950]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 950], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 950]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["page_id", 951], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00], ["description", "image name 7"], ["imageable_id", 408], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 8"], ["imageable_id", 408], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 9"], ["imageable_id", 408], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["page_id", 951], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["height", 480], ["page_id", 951], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 951 [["pageable_type", "Article"], ["pageable_id", 952], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 951]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 951]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 951], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 951]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 408], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (5.2ms) Rendered collection (36.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.4ms) Rendered articles/show.html.haml (48.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["page_id", 952], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 10"], ["imageable_id", 409], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 11"], ["imageable_id", 409], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 12"], ["imageable_id", 409], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["page_id", 952], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["height", 480], ["page_id", 952], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 952 [["pageable_type", "Article"], ["pageable_id", 953], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 952]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 952]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 952], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 952]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 409], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.6ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["page_id", 953], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 13"], ["imageable_id", 410], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 14"], ["imageable_id", 410], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["description", "image name 15"], ["imageable_id", 410], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["page_id", 953], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["height", 480], ["page_id", 953], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 953 [["pageable_type", "Article"], ["pageable_id", 954], ["updated_at", Wed, 18 Dec 2013 08:16:55 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 953]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 953]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 953], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 953]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 410], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.0ms) Rendered collection (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:15 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:15 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 954], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 1"], ["imageable_id", 411], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 2"], ["imageable_id", 411], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 3"], ["imageable_id", 411], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 954], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["height", 480], ["page_id", 954], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 954 [["pageable_type", "Article"], ["pageable_id", 955], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 954]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 954]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 954], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.3ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 954]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 411], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.8ms) Rendered collection (33.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (59.1ms) Rendered articles/show.html.haml (67.1ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 955], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 4"], ["imageable_id", 412], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 5"], ["imageable_id", 412], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 6"], ["imageable_id", 412], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 955], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["height", 480], ["page_id", 955], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 955 [["pageable_type", "Article"], ["pageable_id", 956], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 955]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 955]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 955], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 955]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 412], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 956], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (2.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 7"], ["imageable_id", 413], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 8"], ["imageable_id", 413], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["description", "image name 9"], ["imageable_id", 413], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["page_id", 956], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["height", 480], ["page_id", 956], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 956 [["pageable_type", "Article"], ["pageable_id", 957], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 956]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 956]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 956], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 956]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 413], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.3ms) Rendered collection (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.2ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:16 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/958/edit" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"958"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "958"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 958], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:18 UTC +00:00], ["pageable_id", 958], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:18 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 957]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 957]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 957], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 957]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (43.5ms) Completed 200 OK in 127ms (Views: 116.3ms | ActiveRecord: 4.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/redditor/admin/pages/957/video_blocks/new?content_block%5Btemp_id%5D=1387354638765" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354638765"}, "page_id"=>"957"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "957"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 958]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 958], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (16.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (29.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (40.7ms) Completed 200 OK in 57ms (Views: 53.3ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Started PATCH "/admin/articles/958" for 127.0.0.1 at 2013-12-18 12:17:18 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354638765"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354638765"}}, "id"=>"957"}}, "commit"=>"Submit", "id"=>"958"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "958"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 958], ["pageable_type", "Article"]] SQL (0.8ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:18 UTC +00:00], ["page_id", 957], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:17:18 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 957]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 957]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 957], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 957]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (28.6ms) Completed 200 OK in 47ms (Views: 31.5ms | ActiveRecord: 5.0ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/959/edit" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"959"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "959"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 959], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["pageable_id", 959], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 958]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 958]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 958], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 958]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.7ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/958/video_blocks/new?content_block%5Btemp_id%5D=1387354639318" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354639318"}, "page_id"=>"958"} Redditor::Page Load (0.4ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "958"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 959]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 959], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (13.2ms) Completed 200 OK in 17ms (Views: 13.6ms | ActiveRecord: 0.8ms) Started PATCH "/admin/articles/959" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387354639318"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387354639318"}}, "id"=>"958"}}, "commit"=>"Submit", "id"=>"959"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "959"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 959], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 958]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 958]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 958], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 958]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (10.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (15.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (23.7ms) Completed 200 OK in 42ms (Views: 28.4ms | ActiveRecord: 1.3ms) Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/960/edit" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"960"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "960"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 960], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["pageable_id", 960], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 959]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 959]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 959], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 959]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.4ms) Completed 200 OK in 18ms (Views: 10.4ms | ActiveRecord: 2.4ms) Started GET "/redditor/admin/pages/959/video_blocks/new?content_block%5Btemp_id%5D=1387354639615" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354639615"}, "page_id"=>"959"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "959"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 960]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 960], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (14.5ms) Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/959/video_blocks" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387354639615"}, "page_id"=>"959"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "959"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["page_id", 959], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 960]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 960], ["pageable_type", "Article"]] Started GET "/admin/articles/960/edit" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"960"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "960"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 960], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 959]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 959]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 959], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 959]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (20.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (20.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (48.0ms) Completed 200 OK in 37ms (Views: 33.9ms | ActiveRecord: 0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (63.2ms) Completed 200 OK in 210ms (Views: 203.5ms | ActiveRecord: 2.2ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (5.0ms) commit transaction Started GET "/admin/articles/961/edit" for 127.0.0.1 at 2013-12-18 12:17:19 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"961"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "961"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 961], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00], ["pageable_id", 961], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:19 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 960]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 960]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 960], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 960]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.6ms) Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 2.5ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 961], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:20 UTC +00:00], ["page_id", 960], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:20 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/961/edit" for 127.0.0.1 at 2013-12-18 12:17:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"961"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "961"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 961], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 960]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 960]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 960], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 960]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.4ms) Completed 200 OK in 25ms (Views: 22.3ms | ActiveRecord: 1.0ms) Started DELETE "/redditor/admin/pages/960/video_blocks/502" for 127.0.0.1 at 2013-12-18 12:17:20 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"960", "id"=>"502"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "960"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 960], ["id", "502"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 502]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.7ms) Started GET "/admin/articles/961/edit" for 127.0.0.1 at 2013-12-18 12:17:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"961"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "961"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 961], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 960]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 960]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 960], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 960]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 0.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["page_id", 961], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 961 [["pageable_type", "Article"], ["pageable_id", 962], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 961]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 961]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 961], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 961]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["page_id", 962], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 10"], ["imageable_id", 414], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 11"], ["imageable_id", 414], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 12"], ["imageable_id", 414], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 962 [["pageable_type", "Article"], ["pageable_id", 963], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (2.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 962]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 962]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 962], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 962]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 414], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["page_id", 963], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 13"], ["imageable_id", 415], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 14"], ["imageable_id", 415], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["description", "image name 15"], ["imageable_id", 415], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["page_id", 963], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["height", 480], ["page_id", 963], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 963 [["pageable_type", "Article"], ["pageable_id", 964], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 963]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 963]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 963], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 963]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["height", 480], ["page_id", 964], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]] SQL (0.6ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 964 [["pageable_type", "Article"], ["pageable_id", 965], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 964]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 964]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 964], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 964]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/966/edit" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"966"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "966"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 966], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00], ["pageable_id", 966], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:22 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 965]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 965]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 965], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 965]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.0ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/965/text_blocks/new?content_block%5Btemp_id%5D=1387354642861" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354642861"}, "page_id"=>"965"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "965"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 966]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 966], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (17.0ms) Completed 200 OK in 21ms (Views: 17.7ms | ActiveRecord: 0.4ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:17:22 +0400 Article Load (13.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:24 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:24 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/967/edit" for 127.0.0.1 at 2013-12-18 12:17:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"967"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "967"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 967], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:24 UTC +00:00], ["pageable_id", 967], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:24 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 966]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 966]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 966], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 966]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.5ms) Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/966/text_blocks/new?content_block%5Btemp_id%5D=1387354644989" for 127.0.0.1 at 2013-12-18 12:17:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354644989"}, "page_id"=>"966"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "966"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 967]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 967], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.9ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/967" for 127.0.0.1 at 2013-12-18 12:17:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387354644989"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387354644989"}}, "id"=>"966"}}, "commit"=>"Submit", "id"=>"967"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "967"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 967], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 966]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 966]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 966], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 966]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.3ms) Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 0.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/968/edit" for 127.0.0.1 at 2013-12-18 12:17:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"968"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "968"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 968], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:25 UTC +00:00], ["pageable_id", 968], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 967]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 967]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 967], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 967]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.8ms) Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/967/text_blocks/new?content_block%5Btemp_id%5D=1387354645327" for 127.0.0.1 at 2013-12-18 12:17:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387354645327"}, "page_id"=>"967"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "967"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 968]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 968], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.7ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/969/edit" for 127.0.0.1 at 2013-12-18 12:17:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"969"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "969"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 969], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00], ["pageable_id", 969], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 968]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 968]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 968], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 968]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 969], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00], ["page_id", 968], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:17:27 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/969/edit" for 127.0.0.1 at 2013-12-18 12:17:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"969"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "969"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 969], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 968]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 968]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 968], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 968]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (6.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (12.6ms) Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/968/text_blocks/544" for 127.0.0.1 at 2013-12-18 12:17:27 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"968", "id"=>"544"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "968"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 968], ["id", "544"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 544]]  (0.5ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.2ms) Started GET "/admin/articles/969/edit" for 127.0.0.1 at 2013-12-18 12:17:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"969"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "969"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 969], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 968]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 968]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 968], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 968]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.2ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.8ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (1.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (5.1ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:21 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:21 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/970/edit" for 127.0.0.1 at 2013-12-18 12:26:23 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"970"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "970"]] Redditor::Page Load (0.7ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 970], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:23 UTC +00:00], ["pageable_id", 970], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:23 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.7ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 969]] Redditor::VideoBlock Load (0.6ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 969]] Redditor::Image Load (0.5ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 969], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.4ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 969]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (37.2ms) Rendered admin/articles/edit.html.haml within layouts/application (91.9ms) Completed 200 OK in 247ms (Views: 205.8ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:26:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:26:23 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 970], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:26:24 UTC +00:00], ["page_id", 969], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:24 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/970/edit" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"970"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "970"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 970], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 969]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 969]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 969], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 969]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.2ms) Rendered admin/articles/edit.html.haml within layouts/application (22.8ms) Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 2.2ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Started DELETE "/redditor/admin/pages/969/text_blocks/545" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"969", "id"=>"545"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "969"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 969], ["id", "545"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 545]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.3ms) Started GET "/admin/articles/970/edit" for 127.0.0.1 at 2013-12-18 12:26:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"970"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "970"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 970], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 969]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 969]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 969], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 969]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.6ms) Rendered admin/articles/edit.html.haml within layouts/application (7.7ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:26 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:26 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/971/edit" for 127.0.0.1 at 2013-12-18 12:26:26 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"971"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "971"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 971], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:26 UTC +00:00], ["pageable_id", 971], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:26 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 970]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 970]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 970], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 970]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/970/text_blocks/new?content_block%5Btemp_id%5D=1387355186586" for 127.0.0.1 at 2013-12-18 12:26:26 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355186586"}, "page_id"=>"970"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "970"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 971]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 971], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (23.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (37.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (44.3ms) Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.5ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:28 UTC +00:00]]  (2.7ms) commit transaction Started GET "/admin/articles/972/edit" for 127.0.0.1 at 2013-12-18 12:26:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"972"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "972"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 972], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:28 UTC +00:00], ["pageable_id", 972], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:28 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 971]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 971]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 971], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 971]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/971/text_blocks/new?content_block%5Btemp_id%5D=1387355188778" for 127.0.0.1 at 2013-12-18 12:26:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355188778"}, "page_id"=>"971"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "971"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 972]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 972], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.0ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/972" for 127.0.0.1 at 2013-12-18 12:26:28 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355188778"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355188778"}}, "id"=>"971"}}, "commit"=>"Submit", "id"=>"972"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "972"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 972], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 971]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 971]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 971], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 971]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.4ms) Rendered admin/articles/edit.html.haml within layouts/application (14.1ms) Completed 200 OK in 24ms (Views: 14.2ms | ActiveRecord: 2.1ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:29 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/973/edit" for 127.0.0.1 at 2013-12-18 12:26:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"973"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "973"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 973], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:29 UTC +00:00], ["pageable_id", 973], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:29 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 972]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 972]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 972], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 972]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Rendered admin/articles/edit.html.haml within layouts/application (7.2ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/972/text_blocks/new?content_block%5Btemp_id%5D=1387355189081" for 127.0.0.1 at 2013-12-18 12:26:29 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355189081"}, "page_id"=>"972"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "972"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 973]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 973], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.1ms) Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/972/text_blocks" for 127.0.0.1 at 2013-12-18 12:26:29 +0400 Processing by Redditor::Admin::TextBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355189081"}, "page_id"=>"972"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "972"]]  (0.1ms) begin transaction  (0.0ms) rollback transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 973]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 973], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (18.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (27.5ms) Started GET "/admin/articles/973/edit" for 127.0.0.1 at 2013-12-18 12:26:29 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"973"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "973"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 973], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 972]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 972]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 972], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 972]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.2ms) Rendered admin/articles/edit.html.haml within layouts/application (8.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (176.8ms) Completed 200 OK in 190ms (Views: 184.2ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["height", 480], ["page_id", 973], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 973 [["pageable_type", "Article"], ["pageable_id", 974], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 973]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 973]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 973], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 973]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 974], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 974 [["pageable_type", "Article"], ["pageable_id", 975], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 974]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 974]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 974], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 974]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 975], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 1"], ["imageable_id", 416], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 2"], ["imageable_id", 416], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 3"], ["imageable_id", 416], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 975 [["pageable_type", "Article"], ["pageable_id", 976], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 975]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 975]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 975], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 975]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 416], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 976], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 4"], ["imageable_id", 417], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 5"], ["imageable_id", 417], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 6"], ["imageable_id", 417], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 976], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["height", 480], ["page_id", 976], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 976 [["pageable_type", "Article"], ["pageable_id", 977], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 976]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 976]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 976], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 976]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 977], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 7"], ["imageable_id", 418], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 8"], ["imageable_id", 418], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["description", "image name 9"], ["imageable_id", 418], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["page_id", 977], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["height", 480], ["page_id", 977], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 977 [["pageable_type", "Article"], ["pageable_id", 978], ["updated_at", Wed, 18 Dec 2013 08:26:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 977]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 977]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 977], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 977]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 418], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.9ms) Rendered collection (36.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (42.3ms) Rendered articles/show.html.haml (50.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["page_id", 978], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 10"], ["imageable_id", 419], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 11"], ["imageable_id", 419], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 12"], ["imageable_id", 419], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["page_id", 978], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["height", 480], ["page_id", 978], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 978 [["pageable_type", "Article"], ["pageable_id", 979], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 978]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 978]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 978], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 978]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 419], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.6ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["page_id", 979], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 13"], ["imageable_id", 420], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 14"], ["imageable_id", 420], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["description", "image name 15"], ["imageable_id", 420], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["page_id", 979], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["height", 480], ["page_id", 979], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 979 [["pageable_type", "Article"], ["pageable_id", 980], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 979]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 979]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 979], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 979]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 420], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.6ms) Rendered collection (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.9ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/981/edit" for 127.0.0.1 at 2013-12-18 12:26:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"981"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "981"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 981], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["pageable_id", 981], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00]]  (3.2ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 980]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 980]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 980], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 980]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.5ms) Completed 200 OK in 16ms (Views: 8.8ms | ActiveRecord: 4.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 981], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["page_id", 980], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:26:32 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/981/edit" for 127.0.0.1 at 2013-12-18 12:26:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"981"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "981"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 981], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 980]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 980]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 980], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 980]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (41.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (48.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (54.0ms) Completed 200 OK in 59ms (Views: 57.0ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:26:32 +0400 Started DELETE "/redditor/admin/pages/980/video_blocks/510" for 127.0.0.1 at 2013-12-18 12:26:32 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"980", "id"=>"510"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "980"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 980], ["id", "510"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 510]]  (0.8ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/981/edit" for 127.0.0.1 at 2013-12-18 12:26:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"981"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "981"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 981], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 980]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 980]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 980], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 980]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.9ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.7ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:34 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:34 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/982/edit" for 127.0.0.1 at 2013-12-18 12:26:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"982"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "982"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 982], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:34 UTC +00:00], ["pageable_id", 982], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:34 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 981]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 981]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 981], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 981]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.9ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/981/video_blocks/new?content_block%5Btemp_id%5D=1387355194957" for 127.0.0.1 at 2013-12-18 12:26:34 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355194957"}, "page_id"=>"981"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "981"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 982]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 982], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (18.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (20.9ms) Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/982" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355194957"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355194957"}}, "id"=>"981"}}, "commit"=>"Submit", "id"=>"982"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "982"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 982], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["page_id", 981], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["youtube", "11111111111"]]  (2.5ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 981]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 981]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 981], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 981]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.5ms) Completed 200 OK in 27ms (Views: 18.6ms | ActiveRecord: 3.5ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/983/edit" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"983"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "983"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 983], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["pageable_id", 983], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.5ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 982]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 982]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 982], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 982]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.8ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/982/video_blocks/new?content_block%5Btemp_id%5D=1387355195326" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355195326"}, "page_id"=>"982"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "982"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 983]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 983], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.7ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/983" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355195326"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355195326"}}, "id"=>"982"}}, "commit"=>"Submit", "id"=>"983"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "983"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 983], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 982]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 982]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 982], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 982]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.2ms) Completed 200 OK in 28ms (Views: 18.5ms | ActiveRecord: 1.0ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/984/edit" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"984"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "984"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 984], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["pageable_id", 984], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 983]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 983]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 983], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 983]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/983/video_blocks/new?content_block%5Btemp_id%5D=1387355195539" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355195539"}, "page_id"=>"983"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "983"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 984]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 984], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.8ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/983/video_blocks" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355195539"}, "page_id"=>"983"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "983"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["page_id", 983], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:26:35 UTC +00:00], ["youtube", "11111111111"]]  (1.9ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 984]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 984], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (37.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (47.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (50.0ms) Started GET "/admin/articles/984/edit" for 127.0.0.1 at 2013-12-18 12:26:35 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"984"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "984"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 984], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 983]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 983]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 983], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 983]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.3ms) Completed 200 OK in 28ms (Views: 24.2ms | ActiveRecord: 1.1ms) Completed 200 OK in 184ms (Views: 178.6ms | ActiveRecord: 2.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:19 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:19 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/985/edit" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"985"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "985"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 985], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:22 UTC +00:00], ["pageable_id", 985], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:22 UTC +00:00]]  (1.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 984]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 984]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 984], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 984]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (33.5ms) Rendered admin/articles/edit.html.haml within layouts/application (81.5ms) Completed 200 OK in 188ms (Views: 155.7ms | ActiveRecord: 4.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/redditor/admin/pages/984/text_blocks/new?content_block%5Btemp_id%5D=1387355242431" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355242431"}, "page_id"=>"984"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "984"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 985]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 985], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (22.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (34.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (41.0ms) Completed 200 OK in 63ms (Views: 47.8ms | ActiveRecord: 0.5ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Started PATCH "/admin/articles/985" for 127.0.0.1 at 2013-12-18 12:27:22 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355242431"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355242431"}}, "id"=>"984"}}, "commit"=>"Submit", "id"=>"985"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "985"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 985], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 984]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 984]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 984], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 984]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (18.8ms) Rendered admin/articles/edit.html.haml within layouts/application (22.0ms) Completed 200 OK in 33ms (Views: 22.2ms | ActiveRecord: 2.2ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:24 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:24 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/986/edit" for 127.0.0.1 at 2013-12-18 12:27:24 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"986"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "986"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 986], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:24 UTC +00:00], ["pageable_id", 986], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:24 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 985]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 985]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 985], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 985]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (7.2ms) Rendered admin/articles/edit.html.haml within layouts/application (9.5ms) Completed 200 OK in 16ms (Views: 9.6ms | ActiveRecord: 3.3ms) Started GET "/redditor/admin/pages/985/text_blocks/new?content_block%5Btemp_id%5D=1387355244865" for 127.0.0.1 at 2013-12-18 12:27:24 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355244865"}, "page_id"=>"985"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "985"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 986]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 986], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (3.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (8.5ms) Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.2ms) Started PATCH "/admin/articles/986" for 127.0.0.1 at 2013-12-18 12:27:24 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355244865"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355244865"}}, "id"=>"985"}}, "commit"=>"Submit", "id"=>"986"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "986"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 986], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 985]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 985]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 985], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 985]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (9.7ms) Rendered admin/articles/edit.html.haml within layouts/application (12.5ms) Completed 200 OK in 20ms (Views: 13.5ms | ActiveRecord: 0.7ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/987/edit" for 127.0.0.1 at 2013-12-18 12:27:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"987"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "987"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 987], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00], ["pageable_id", 987], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 986]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 986]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 986], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 986]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 987], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00], ["page_id", 986], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/987/edit" for 127.0.0.1 at 2013-12-18 12:27:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"987"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "987"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 987], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 986]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 986]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 986], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 986]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.3ms) Rendered admin/articles/edit.html.haml within layouts/application (13.5ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 1.4ms) Started DELETE "/redditor/admin/pages/986/text_blocks/551" for 127.0.0.1 at 2013-12-18 12:27:25 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"986", "id"=>"551"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "986"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 986], ["id", "551"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 551]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/987/edit" for 127.0.0.1 at 2013-12-18 12:27:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"987"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "987"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 987], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 986]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 986]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 986], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 986]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:27 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/988/edit" for 127.0.0.1 at 2013-12-18 12:27:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"988"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "988"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 988], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:27 UTC +00:00], ["pageable_id", 988], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:27 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 987]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 987]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 987], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 987]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.6ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/987/text_blocks/new?content_block%5Btemp_id%5D=1387355247544" for 127.0.0.1 at 2013-12-18 12:27:27 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355247544"}, "page_id"=>"987"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "987"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 988]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 988], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.5ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.5ms) Started POST "/redditor/admin/pages/987/text_blocks" for 127.0.0.1 at 2013-12-18 12:27:27 +0400 Processing by Redditor::Admin::TextBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355247544"}, "page_id"=>"987"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "987"]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 988]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 988], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (8.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (29.0ms) Started GET "/admin/articles/988/edit" for 127.0.0.1 at 2013-12-18 12:27:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"988"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "988"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 988], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 987]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 987]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 987], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 987]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.7ms) Rendered admin/articles/edit.html.haml within layouts/application (8.7ms) Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (175.8ms) Completed 200 OK in 189ms (Views: 182.3ms | ActiveRecord: 0.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00], ["page_id", 988], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00], ["description", "image name 1"], ["imageable_id", 421], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 2"], ["imageable_id", 421], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 3"], ["imageable_id", 421], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 988], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["height", 480], ["page_id", 988], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 988 [["pageable_type", "Article"], ["pageable_id", 989], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 988]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 988]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 988], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 988]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 421], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.6ms) Rendered collection (35.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (41.2ms) Rendered articles/show.html.haml (48.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 989], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 4"], ["imageable_id", 422], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 5"], ["imageable_id", 422], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 6"], ["imageable_id", 422], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 989], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["height", 480], ["page_id", 989], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 989 [["pageable_type", "Article"], ["pageable_id", 990], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 989]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 989]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 989], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 989]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 422], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.1ms) Rendered collection (6.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (11.5ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 990], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 423], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 8"], ["imageable_id", 423], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 423], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 990], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["height", 480], ["page_id", 990], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 990 [["pageable_type", "Article"], ["pageable_id", 991], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 990]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 990]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 990], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 990]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 423], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.3ms) Rendered collection (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 991], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 991 [["pageable_type", "Article"], ["pageable_id", 992], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 991]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 991]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 991], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 991]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 992], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 424], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 424], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 424], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 992 [["pageable_type", "Article"], ["pageable_id", 993], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 992]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 992]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 992], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 992]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 424], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["height", 480], ["page_id", 993], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 993 [["pageable_type", "Article"], ["pageable_id", 994], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 993]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 993]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 993], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 993]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 994], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 13"], ["imageable_id", 425], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 14"], ["imageable_id", 425], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["description", "image name 15"], ["imageable_id", 425], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["page_id", 994], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["height", 480], ["page_id", 994], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 994 [["pageable_type", "Article"], ["pageable_id", 995], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 994]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 994]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 994], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 994]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/996/edit" for 127.0.0.1 at 2013-12-18 12:27:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"996"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "996"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 996], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00], ["pageable_id", 996], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:30 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 995]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 995]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 995], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 995]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.4ms) Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/995/video_blocks/new?content_block%5Btemp_id%5D=1387355250936" for 127.0.0.1 at 2013-12-18 12:27:30 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355250936"}, "page_id"=>"995"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "995"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 996]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 996], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.0ms) Completed 200 OK in 26ms (Views: 22.7ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:27:30 +0400 Started PATCH "/admin/articles/996" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355250936"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355250936"}}, "id"=>"995"}}, "commit"=>"Submit", "id"=>"996"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "996"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 996], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["page_id", 995], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 995]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 995]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 995], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 995]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (8.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (19.8ms) Completed 200 OK in 29ms (Views: 22.7ms | ActiveRecord: 1.7ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/997/edit" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"997"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "997"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 997], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["pageable_id", 997], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 996]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 996]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 996], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 996]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.2ms) Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 2.3ms) Started GET "/redditor/admin/pages/996/video_blocks/new?content_block%5Btemp_id%5D=1387355251376" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355251376"}, "page_id"=>"996"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "996"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 997]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 997], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.9ms) Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/997" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355251376"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355251376"}}, "id"=>"996"}}, "commit"=>"Submit", "id"=>"997"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "997"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 997], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 996]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 996]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 996], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 996]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.5ms) Completed 200 OK in 26ms (Views: 18.0ms | ActiveRecord: 0.8ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/998/edit" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"998"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "998"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 998], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["pageable_id", 998], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00]]  (1.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 997]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 997]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 997], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 997]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.3ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 998], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["page_id", 997], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:31 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/998/edit" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"998"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "998"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 998], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 997]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 997]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 997], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 997]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.9ms) Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.8ms) Started DELETE "/redditor/admin/pages/997/video_blocks/519" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"997", "id"=>"519"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "997"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 997], ["id", "519"]]  (0.1ms) begin transaction SQL (0.8ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 519]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.0ms) Started GET "/admin/articles/998/edit" for 127.0.0.1 at 2013-12-18 12:27:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"998"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "998"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 998], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 997]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 997]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 997], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 997]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:33 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/999/edit" for 127.0.0.1 at 2013-12-18 12:27:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"999"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "999"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 999], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:33 UTC +00:00], ["pageable_id", 999], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:33 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 998]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 998]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 998], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 998]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.8ms) Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/998/video_blocks/new?content_block%5Btemp_id%5D=1387355253956" for 127.0.0.1 at 2013-12-18 12:27:33 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355253956"}, "page_id"=>"998"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "998"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 999]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 999], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.2ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/998/video_blocks" for 127.0.0.1 at 2013-12-18 12:27:33 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355253956"}, "page_id"=>"998"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "998"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:34 UTC +00:00], ["page_id", 998], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:27:34 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 999]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 999], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (16.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (18.7ms) Started GET "/admin/articles/999/edit" for 127.0.0.1 at 2013-12-18 12:27:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"999"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "999"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 999], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 998]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 998]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 998], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 998]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (14.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.7ms) Completed 200 OK in 28ms (Views: 24.6ms | ActiveRecord: 0.7ms) Completed 200 OK in 155ms (Views: 149.6ms | ActiveRecord: 3.1ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00], ["page_id", 999], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00], ["description", "image name 1"], ["imageable_id", 426], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 2"], ["imageable_id", 426], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 3"], ["imageable_id", 426], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["page_id", 999], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["height", 480], ["page_id", 999], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 999 [["pageable_type", "Article"], ["pageable_id", 1000], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 999]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 999]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 999], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 999]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 426], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.8ms) Rendered collection (44.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (70.4ms) Rendered articles/show.html.haml (79.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["page_id", 1000], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 4"], ["imageable_id", 427], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 5"], ["imageable_id", 427], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 6"], ["imageable_id", 427], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["page_id", 1000], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["height", 480], ["page_id", 1000], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1000 [["pageable_type", "Article"], ["pageable_id", 1001], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1000]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1000]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1000], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1000]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 427], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.6ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["page_id", 1001], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 7"], ["imageable_id", 428], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 8"], ["imageable_id", 428], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["description", "image name 9"], ["imageable_id", 428], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["page_id", 1001], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["height", 480], ["page_id", 1001], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]] SQL (0.5ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1001 [["pageable_type", "Article"], ["pageable_id", 1002], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1001]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1001]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1001], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1001]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 428], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (6.3ms) Rendered collection (10.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (17.4ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:27:57 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1003/edit" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1003"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1003"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1003], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:27:59 UTC +00:00], ["pageable_id", 1003], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:27:59 UTC +00:00]]  (2.3ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1002]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1002]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1002], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1002]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (45.7ms) Completed 200 OK in 137ms (Views: 126.4ms | ActiveRecord: 5.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/redditor/admin/pages/1002/text_blocks/new?content_block%5Btemp_id%5D=1387355279855" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355279855"}, "page_id"=>"1002"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1002"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1003]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1003], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (23.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (35.2ms) Completed 200 OK in 53ms (Views: 48.8ms | ActiveRecord: 1.2ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:27:59 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Started POST "/redditor/admin/pages/1002/text_blocks" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Processing by Redditor::Admin::TextBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355279855"}, "page_id"=>"1002"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1002"]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1003]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1003], ["pageable_type", "Article"]] Started GET "/admin/articles/1003/edit" for 127.0.0.1 at 2013-12-18 12:28:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1003"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1003"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.5ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1003], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (16.8ms) Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1002]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (33.9ms) Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1002]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (44.0ms) Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1002], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1002]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.9ms) Completed 200 OK in 19ms (Views: 10.6ms | ActiveRecord: 2.6ms) Completed 200 OK in 197ms (Views: 190.5ms | ActiveRecord: 0.6ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1004/edit" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1004"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1004"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1004], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00], ["pageable_id", 1004], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1003]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1003]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1003], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1003]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (7.4ms) Completed 200 OK in 16ms (Views: 10.0ms | ActiveRecord: 2.7ms) Started GET "/redditor/admin/pages/1003/text_blocks/new?content_block%5Btemp_id%5D=1387355282324" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355282324"}, "page_id"=>"1003"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1003"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1004]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1004], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.1ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/1004" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355282324"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355282324"}}, "id"=>"1003"}}, "commit"=>"Submit", "id"=>"1004"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1004"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1004], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1003]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1003]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1003], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1003]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.5ms) Completed 200 OK in 28ms (Views: 20.3ms | ActiveRecord: 0.8ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1005/edit" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1005"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1005"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1005], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00], ["pageable_id", 1005], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1004]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1004]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1004], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1004]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1005], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00], ["page_id", 1004], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:02 UTC +00:00]]  (1.1ms) commit transaction Started GET "/admin/articles/1005/edit" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1005"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1005"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1005], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1004]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1004]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1004], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1004]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (10.5ms) Completed 200 OK in 17ms (Views: 14.4ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/1004/text_blocks/560" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1004", "id"=>"560"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1004"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1004], ["id", "560"]]  (0.0ms) begin transaction SQL (0.7ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 560]]  (0.8ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.9ms) Started GET "/admin/articles/1005/edit" for 127.0.0.1 at 2013-12-18 12:28:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1005"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1005"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1005], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1004]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1004]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1004], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1004]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.2ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 2.0ms) Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:04 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1006/edit" for 127.0.0.1 at 2013-12-18 12:28:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1006"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1006"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1006], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:04 UTC +00:00], ["pageable_id", 1006], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:04 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1005]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1005]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1005], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1005]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.6ms) Completed 200 OK in 16ms (Views: 9.3ms | ActiveRecord: 2.8ms) Started GET "/redditor/admin/pages/1005/text_blocks/new?content_block%5Btemp_id%5D=1387355285012" for 127.0.0.1 at 2013-12-18 12:28:05 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355285012"}, "page_id"=>"1005"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1005"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1006]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1006], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (6.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (9.9ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1006" for 127.0.0.1 at 2013-12-18 12:28:05 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355285012"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355285012"}}, "id"=>"1005"}}, "commit"=>"Submit", "id"=>"1006"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1006"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1006], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1005]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1005]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1005], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1005]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (10.2ms) Completed 200 OK in 22ms (Views: 14.0ms | ActiveRecord: 0.8ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1007/edit" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1007"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1007"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1007], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["pageable_id", 1007], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1006]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1006]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1006], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1006]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1006/video_blocks/new?content_block%5Btemp_id%5D=1387355287422" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355287422"}, "page_id"=>"1006"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1006"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1007]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1007], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (23.0ms) Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Started POST "/redditor/admin/pages/1006/video_blocks" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355287422"}, "page_id"=>"1006"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1006"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["page_id", 1006], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1007]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1007], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.8ms) Started GET "/admin/articles/1007/edit" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1007"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1007"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1007], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.4ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1006]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1006]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1006], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1006]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (12.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (29.4ms) Completed 200 OK in 38ms (Views: 33.0ms | ActiveRecord: 1.5ms) Completed 200 OK in 179ms (Views: 174.3ms | ActiveRecord: 1.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1008/edit" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1008"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1008"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1008], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00], ["pageable_id", 1008], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1007]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1007]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1007], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1007]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Completed 200 OK in 47ms (Views: 8.1ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/1007/video_blocks/new?content_block%5Btemp_id%5D=1387355287944" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355287944"}, "page_id"=>"1007"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1007"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1008]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1008], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.6ms) Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1008" for 127.0.0.1 at 2013-12-18 12:28:07 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355287944"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355287944"}}, "id"=>"1007"}}, "commit"=>"Submit", "id"=>"1008"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1008"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1008], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1007]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1007]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1007], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1007]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.6ms) Completed 200 OK in 25ms (Views: 18.1ms | ActiveRecord: 0.7ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1009/edit" for 127.0.0.1 at 2013-12-18 12:28:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1009"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1009"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1009], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00], ["pageable_id", 1009], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1008]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1008]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1008], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1008]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.6ms) Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1009], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00], ["page_id", 1008], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:08 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Started GET "/admin/articles/1009/edit" for 127.0.0.1 at 2013-12-18 12:28:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1009"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1009"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1009], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1008]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1008]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1008], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1008]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.7ms) Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/1008/video_blocks/525" for 127.0.0.1 at 2013-12-18 12:28:08 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1008", "id"=>"525"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1008"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1008], ["id", "525"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 525]]  (2.0ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.9ms) Started GET "/admin/articles/1009/edit" for 127.0.0.1 at 2013-12-18 12:28:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1009"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1009"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1009], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1008]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1008]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1008], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1008]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1010/edit" for 127.0.0.1 at 2013-12-18 12:28:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1010"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1010"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1010], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["pageable_id", 1010], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1009]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1009]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1009], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1009]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1009/video_blocks/new?content_block%5Btemp_id%5D=1387355290519" for 127.0.0.1 at 2013-12-18 12:28:10 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355290519"}, "page_id"=>"1009"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1009"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1010]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1010], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (12.7ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1010" for 127.0.0.1 at 2013-12-18 12:28:10 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355290519"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355290519"}}, "id"=>"1009"}}, "commit"=>"Submit", "id"=>"1010"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1010"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1010], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["page_id", 1009], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["youtube", "11111111111"]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1009]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1009]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1009], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1009]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.4ms) Completed 200 OK in 27ms (Views: 18.3ms | ActiveRecord: 3.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["page_id", 1010], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["description", "image name 10"], ["imageable_id", 429], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["description", "image name 11"], ["imageable_id", 429], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["description", "image name 12"], ["imageable_id", 429], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["page_id", 1010], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["height", 480], ["page_id", 1010], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1010 [["pageable_type", "Article"], ["pageable_id", 1011], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1010]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1010]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1010], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1010]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["page_id", 1011], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00], ["description", "image name 13"], ["imageable_id", 430], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:10 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["description", "image name 14"], ["imageable_id", 430], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["description", "image name 15"], ["imageable_id", 430], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1011 [["pageable_type", "Article"], ["pageable_id", 1012], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1011]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1011]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1011], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1011]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 430], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["height", 480], ["page_id", 1012], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1012 [["pageable_type", "Article"], ["pageable_id", 1013], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (3.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1012]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1012]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1012], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1012]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["page_id", 1013], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1013 [["pageable_type", "Article"], ["pageable_id", 1014], ["updated_at", Wed, 18 Dec 2013 08:28:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1013]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1013]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1013], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1013]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:20 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:20 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1015/edit" for 127.0.0.1 at 2013-12-18 12:30:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1015"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1015"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1015], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:22 UTC +00:00], ["pageable_id", 1015], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:22 UTC +00:00]]  (2.4ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1014]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1014]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1014], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1014]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (35.2ms) Rendered admin/articles/edit.html.haml within layouts/application (82.0ms) Completed 200 OK in 179ms (Views: 145.2ms | ActiveRecord: 5.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/redditor/admin/pages/1014/text_blocks/new?content_block%5Btemp_id%5D=1387355423289" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355423289"}, "page_id"=>"1014"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1014"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1015]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1015], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (21.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (34.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (41.3ms) Completed 200 OK in 62ms (Views: 47.7ms | ActiveRecord: 0.5ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:30:23 +0400 Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1016/edit" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1016"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1016"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1016], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00], ["pageable_id", 1016], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00]]  (0.6ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1015]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1015]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1015], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1015]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.7ms) Rendered admin/articles/edit.html.haml within layouts/application (6.6ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.5ms) Started GET "/redditor/admin/pages/1015/text_blocks/new?content_block%5Btemp_id%5D=1387355425448" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355425448"}, "page_id"=>"1015"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1015"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1016]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1016], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (8.7ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 1.2ms) Started PATCH "/admin/articles/1016" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355425448"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355425448"}}, "id"=>"1015"}}, "commit"=>"Submit", "id"=>"1016"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1016"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1016], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1015]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1015]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1015], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1015]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (2.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.5ms) Rendered admin/articles/edit.html.haml within layouts/application (19.2ms) Completed 200 OK in 32ms (Views: 19.7ms | ActiveRecord: 2.4ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1017/edit" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1017"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1017"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1017], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00], ["pageable_id", 1017], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1016]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1016]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1016], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1016]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.2ms) Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1017], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00], ["page_id", 1016], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:25 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1017/edit" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1017"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1017"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1017], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1016]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1016]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1016], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1016]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (12.0ms) Rendered admin/articles/edit.html.haml within layouts/application (14.5ms) Completed 200 OK in 18ms (Views: 14.7ms | ActiveRecord: 1.3ms) Started DELETE "/redditor/admin/pages/1016/text_blocks/563" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1016", "id"=>"563"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1016"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1016], ["id", "563"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 563]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.5ms) Started GET "/admin/articles/1017/edit" for 127.0.0.1 at 2013-12-18 12:30:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1017"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1017"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1017], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1016]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1016]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1016], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1016]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.4ms) Rendered admin/articles/edit.html.haml within layouts/application (8.3ms) Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 1.7ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:28 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:28 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1018/edit" for 127.0.0.1 at 2013-12-18 12:30:28 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1018"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1018"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1018], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:28 UTC +00:00], ["pageable_id", 1018], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:28 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1017]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1017]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1017], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1017]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1017/text_blocks/new?content_block%5Btemp_id%5D=1387355428138" for 127.0.0.1 at 2013-12-18 12:30:28 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355428138"}, "page_id"=>"1017"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1017"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1018]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1018], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.2ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.4ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1018], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 1"], ["imageable_id", 431], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 2"], ["imageable_id", 431], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 3"], ["imageable_id", 431], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1018], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["height", 480], ["page_id", 1018], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1018 [["pageable_type", "Article"], ["pageable_id", 1019], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1018]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1018]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1018], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1018]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1019], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 4"], ["imageable_id", 432], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 5"], ["imageable_id", 432], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 6"], ["imageable_id", 432], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1019 [["pageable_type", "Article"], ["pageable_id", 1020], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1019]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1019]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1019], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1019]]  (0.3ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 432], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["height", 480], ["page_id", 1020], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1020 [["pageable_type", "Article"], ["pageable_id", 1021], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1020]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1020]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1020], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1020]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1021], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1021 [["pageable_type", "Article"], ["pageable_id", 1022], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1021]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1021]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1021], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1021]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1022], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 7"], ["imageable_id", 433], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 8"], ["imageable_id", 433], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 433], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1022], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["height", 480], ["page_id", 1022], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1022 [["pageable_type", "Article"], ["pageable_id", 1023], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1022]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1022]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1022], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1022]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 433], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.3ms) Rendered collection (33.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.9ms) Rendered articles/show.html.haml (44.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1023], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 434], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 434], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 434], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1023], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["height", 480], ["page_id", 1023], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1023 [["pageable_type", "Article"], ["pageable_id", 1024], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1023]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1023]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1023], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1023]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 434], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.5ms) Rendered collection (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (12.9ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00], ["page_id", 1024], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["description", "image name 13"], ["imageable_id", 435], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["description", "image name 14"], ["imageable_id", 435], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["description", "image name 15"], ["imageable_id", 435], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["page_id", 1024], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["height", 480], ["page_id", 1024], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1024 [["pageable_type", "Article"], ["pageable_id", 1025], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1024]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1024]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1024], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1024]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 435], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (10.0ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (1.2ms) commit transaction Started GET "/admin/articles/1026/edit" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1026"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1026"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1026], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["pageable_id", 1026], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1025]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1025]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1025], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1025]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.5ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1025/video_blocks/new?content_block%5Btemp_id%5D=1387355431243" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355431243"}, "page_id"=>"1025"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1025"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1026]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1026], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.4ms) Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Started POST "/redditor/admin/pages/1025/video_blocks" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355431243"}, "page_id"=>"1025"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1025"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["page_id", 1025], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["youtube", "11111111111"]]  (1.3ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1026]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1026], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (25.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (34.7ms) Started GET "/admin/articles/1026/edit" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1026"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1026"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1026], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1025]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1025]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1025], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1025]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (19.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (58.1ms) Completed 200 OK in 64ms (Views: 61.6ms | ActiveRecord: 0.7ms) Completed 200 OK in 226ms (Views: 219.7ms | ActiveRecord: 2.3ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1027/edit" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1027"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1027"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1027], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["pageable_id", 1027], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1026]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1026]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1026], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1026]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (7.3ms) Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/1026/video_blocks/new?content_block%5Btemp_id%5D=1387355431775" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355431775"}, "page_id"=>"1026"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1026"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1027]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1027], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (13.4ms) Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1027" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355431775"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355431775"}}, "id"=>"1026"}}, "commit"=>"Submit", "id"=>"1027"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1027"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1027], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1026]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1026]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1026], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1026]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.4ms) Completed 200 OK in 30ms (Views: 22.3ms | ActiveRecord: 0.9ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1028/edit" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1028"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1028"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1028], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["pageable_id", 1028], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1027]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1027]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1027], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1027]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.9ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1028], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["page_id", 1027], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:30:31 UTC +00:00], ["youtube", "11111111111"]]  (1.8ms) commit transaction Started GET "/admin/articles/1028/edit" for 127.0.0.1 at 2013-12-18 12:30:31 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1028"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1028"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1028], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1027]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1027]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1027], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1027]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.9ms) Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/1027/video_blocks/535" for 127.0.0.1 at 2013-12-18 12:30:32 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1027", "id"=>"535"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1027"]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1027], ["id", "535"]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 535]]  (2.1ms) commit transaction Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.9ms) Started GET "/admin/articles/1028/edit" for 127.0.0.1 at 2013-12-18 12:30:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1028"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1028"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1028], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1027]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1027]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1027], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1027]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.7ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1029/edit" for 127.0.0.1 at 2013-12-18 12:30:34 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1029"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1029"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1029], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00], ["pageable_id", 1029], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1028]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1028]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1028], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1028]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/1028/video_blocks/new?content_block%5Btemp_id%5D=1387355434365" for 127.0.0.1 at 2013-12-18 12:30:34 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355434365"}, "page_id"=>"1028"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1028"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1029]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1029], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.2ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1029" for 127.0.0.1 at 2013-12-18 12:30:34 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355434365"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355434365"}}, "id"=>"1028"}}, "commit"=>"Submit", "id"=>"1029"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1029"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1029], ["pageable_type", "Article"]] SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00], ["page_id", 1028], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:30:34 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1028]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1028]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1028], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1028]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.8ms) Completed 200 OK in 26ms (Views: 17.8ms | ActiveRecord: 3.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["page_id", 1029], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 1"], ["imageable_id", 436], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 2"], ["imageable_id", 436], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 3"], ["imageable_id", 436], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["page_id", 1029], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["height", 480], ["page_id", 1029], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1029 [["pageable_type", "Article"], ["pageable_id", 1030], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1029]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1029]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1029], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1029]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 436], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (5.8ms) Rendered collection (39.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (63.9ms) Rendered articles/show.html.haml (73.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["page_id", 1030], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 4"], ["imageable_id", 437], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 5"], ["imageable_id", 437], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 6"], ["imageable_id", 437], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["page_id", 1030], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["height", 480], ["page_id", 1030], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1030 [["pageable_type", "Article"], ["pageable_id", 1031], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1030]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1030]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1030], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1030]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 437], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["page_id", 1031], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 7"], ["imageable_id", 438], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00], ["description", "image name 8"], ["imageable_id", 438], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 9"], ["imageable_id", 438], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["page_id", 1031], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["height", 480], ["page_id", 1031], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1031 [["pageable_type", "Article"], ["pageable_id", 1032], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1031]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1031]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1031], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1031]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 438], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["page_id", 1032], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 10"], ["imageable_id", 439], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 11"], ["imageable_id", 439], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 12"], ["imageable_id", 439], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["page_id", 1032], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["height", 480], ["page_id", 1032], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1032 [["pageable_type", "Article"], ["pageable_id", 1033], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1032]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1032]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1032], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1032]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["height", 480], ["page_id", 1033], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1033 [["pageable_type", "Article"], ["pageable_id", 1034], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1033]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1033]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1033], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1033]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["page_id", 1034], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (3.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 13"], ["imageable_id", 440], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 14"], ["imageable_id", 440], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["description", "image name 15"], ["imageable_id", 440], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1034 [["pageable_type", "Article"], ["pageable_id", 1035], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1034]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1034]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1034], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1034]]  (0.1ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 440], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["page_id", 1035], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1035 [["pageable_type", "Article"], ["pageable_id", 1036], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1035]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1035]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1035], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1035]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:37 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1037/edit" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1037"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1037"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1037], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:39 UTC +00:00], ["pageable_id", 1037], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:39 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1036]] Redditor::VideoBlock Load (0.3ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1036]] Redditor::Image Load (0.3ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1036], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1036]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.0ms) Completed 200 OK in 111ms (Views: 101.5ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Started GET "/redditor/admin/pages/1036/text_blocks/new?content_block%5Btemp_id%5D=1387355619902" for 127.0.0.1 at 2013-12-18 12:33:39 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355619902"}, "page_id"=>"1036"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1036"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1037]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1037], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (8.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (21.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (32.8ms) Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.5ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:33:40 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:33:40 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:33:40 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:33:40 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:33:40 +0400 Article Load (2.7ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:41 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:41 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1038/edit" for 127.0.0.1 at 2013-12-18 12:33:41 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1038"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1038"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1038], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:41 UTC +00:00], ["pageable_id", 1038], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:41 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1037]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1037]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1037], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1037]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.5ms) Completed 200 OK in 15ms (Views: 8.6ms | ActiveRecord: 3.3ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1038], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:33:42 UTC +00:00], ["page_id", 1037], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:42 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1038/edit" for 127.0.0.1 at 2013-12-18 12:33:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1038"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1038"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1038], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1037]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1037]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1037], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1037]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (18.1ms) Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/1037/text_blocks/574" for 127.0.0.1 at 2013-12-18 12:33:42 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1037", "id"=>"574"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1037"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1037], ["id", "574"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 574]]  (0.7ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.1ms) Started GET "/admin/articles/1038/edit" for 127.0.0.1 at 2013-12-18 12:33:42 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1038"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1038"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1038], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1037]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1037]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1037], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1037]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.7ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1039/edit" for 127.0.0.1 at 2013-12-18 12:33:44 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1039"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1039"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1039], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00], ["pageable_id", 1039], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1038]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1038]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1038], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1038]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.6ms) Started GET "/redditor/admin/pages/1038/text_blocks/new?content_block%5Btemp_id%5D=1387355624377" for 127.0.0.1 at 2013-12-18 12:33:44 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355624377"}, "page_id"=>"1038"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1038"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1039]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1039], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.6ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/1039" for 127.0.0.1 at 2013-12-18 12:33:44 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355624377"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355624377"}}, "id"=>"1038"}}, "commit"=>"Submit", "id"=>"1039"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1039"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1039], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1038]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1038]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1038], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1038]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (9.5ms) Completed 200 OK in 21ms (Views: 13.1ms | ActiveRecord: 0.8ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1040/edit" for 127.0.0.1 at 2013-12-18 12:33:44 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1040"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1040"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1040], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00], ["pageable_id", 1040], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:44 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1039]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1039]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1039], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1039]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.6ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1039/text_blocks/new?content_block%5Btemp_id%5D=1387355624685" for 127.0.0.1 at 2013-12-18 12:33:44 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355624685"}, "page_id"=>"1039"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1039"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1040]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1040], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.3ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.4ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1041/edit" for 127.0.0.1 at 2013-12-18 12:33:46 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1041"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1041"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1041], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00], ["pageable_id", 1041], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1040]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1040]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1040], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1040]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1040/video_blocks/new?content_block%5Btemp_id%5D=1387355626820" for 127.0.0.1 at 2013-12-18 12:33:46 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355626820"}, "page_id"=>"1040"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1040"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1041]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1041], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (20.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.7ms) Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.4ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:33:46 +0400 Started POST "/redditor/admin/pages/1040/video_blocks" for 127.0.0.1 at 2013-12-18 12:33:46 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355626820"}, "page_id"=>"1040"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1040"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00], ["page_id", 1040], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:33:46 UTC +00:00], ["youtube", "11111111111"]]  (2.6ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1041]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1041], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (15.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (28.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (37.1ms) Started GET "/admin/articles/1041/edit" for 127.0.0.1 at 2013-12-18 12:33:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1041"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1041"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1041], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1040]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1040]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1040], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1040]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (17.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (23.7ms) Completed 200 OK in 29ms (Views: 27.2ms | ActiveRecord: 0.6ms) Completed 200 OK in 224ms (Views: 216.5ms | ActiveRecord: 3.9ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1042/edit" for 127.0.0.1 at 2013-12-18 12:33:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1042"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1042"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1042], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00], ["pageable_id", 1042], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (1.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1041]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1041]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1041], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1041]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.9ms) Completed 200 OK in 18ms (Views: 10.5ms | ActiveRecord: 3.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1042], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00], ["page_id", 1041], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:33:47 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/1042/edit" for 127.0.0.1 at 2013-12-18 12:33:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1042"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1042"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1042], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1041]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1041]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1041], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1041]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.7ms) Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/1041/video_blocks/543" for 127.0.0.1 at 2013-12-18 12:33:47 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1041", "id"=>"543"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1041"]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1041], ["id", "543"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 543]]  (2.2ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/1042/edit" for 127.0.0.1 at 2013-12-18 12:33:47 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1042"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1042"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1042], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1041]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1041]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1041], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1041]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.2ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.8ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1043/edit" for 127.0.0.1 at 2013-12-18 12:33:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1043"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1043"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1043], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00], ["pageable_id", 1043], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1042]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1042]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1042], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1042]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.3ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1042/video_blocks/new?content_block%5Btemp_id%5D=1387355629756" for 127.0.0.1 at 2013-12-18 12:33:49 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355629756"}, "page_id"=>"1042"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1042"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1043]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1043], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.5ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1043" for 127.0.0.1 at 2013-12-18 12:33:49 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355629756"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355629756"}}, "id"=>"1042"}}, "commit"=>"Submit", "id"=>"1043"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1043"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1043], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1042]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1042]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1042], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1042]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.0ms) Completed 200 OK in 24ms (Views: 17.3ms | ActiveRecord: 0.8ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1044/edit" for 127.0.0.1 at 2013-12-18 12:33:49 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1044"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1044"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1044], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00], ["pageable_id", 1044], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:33:49 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1043]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1043]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1043], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1043]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.5ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1043/video_blocks/new?content_block%5Btemp_id%5D=1387355629973" for 127.0.0.1 at 2013-12-18 12:33:49 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355629973"}, "page_id"=>"1043"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1043"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1044]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1044], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (14.7ms) Completed 200 OK in 19ms (Views: 15.7ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/1044" for 127.0.0.1 at 2013-12-18 12:33:50 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355629973"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355629973"}}, "id"=>"1043"}}, "commit"=>"Submit", "id"=>"1044"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1044"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1044], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:33:50 UTC +00:00], ["page_id", 1043], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:33:50 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1043]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1043]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1043], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1043]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.4ms) Completed 200 OK in 29ms (Views: 20.1ms | ActiveRecord: 3.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:17 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:17 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1045/edit" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1045"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1045"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1045], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:20 UTC +00:00], ["pageable_id", 1045], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:20 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1044]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1044]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1044], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1044]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (33.8ms) Rendered admin/articles/edit.html.haml within layouts/application (78.1ms) Completed 200 OK in 177ms (Views: 144.2ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1045], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:36:20 UTC +00:00], ["page_id", 1044], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:20 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1045/edit" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1045"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1045"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1045], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1044]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1044]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1044], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1044]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (19.1ms) Rendered admin/articles/edit.html.haml within layouts/application (21.6ms) Completed 200 OK in 26ms (Views: 21.7ms | ActiveRecord: 2.0ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Started DELETE "/redditor/admin/pages/1044/text_blocks/575" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1044", "id"=>"575"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1044"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1044], ["id", "575"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 575]]  (0.8ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/1045/edit" for 127.0.0.1 at 2013-12-18 12:36:20 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1045"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1045"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1045], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1044]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1044]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1044], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1044]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Rendered admin/articles/edit.html.haml within layouts/application (7.8ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:22 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:22 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1046/edit" for 127.0.0.1 at 2013-12-18 12:36:22 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1046"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1046"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1046], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:22 UTC +00:00], ["pageable_id", 1046], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:22 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1045]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1045]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1045], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1045]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (6.7ms) Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1045/text_blocks/new?content_block%5Btemp_id%5D=1387355782897" for 127.0.0.1 at 2013-12-18 12:36:22 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355782897"}, "page_id"=>"1045"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1045"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1046]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1046], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (21.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (33.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (42.8ms) Completed 200 OK in 52ms (Views: 49.8ms | ActiveRecord: 0.5ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:25 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:25 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1047/edit" for 127.0.0.1 at 2013-12-18 12:36:25 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1047"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1047"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1047], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:25 UTC +00:00], ["pageable_id", 1047], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:25 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1046]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1046]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1046], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1046]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Rendered admin/articles/edit.html.haml within layouts/application (34.3ms) Completed 200 OK in 40ms (Views: 35.1ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1046/text_blocks/new?content_block%5Btemp_id%5D=1387355785196" for 127.0.0.1 at 2013-12-18 12:36:25 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355785196"}, "page_id"=>"1046"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1046"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1047]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1047], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (8.0ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.4ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:27 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:27 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1048/edit" for 127.0.0.1 at 2013-12-18 12:36:27 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1048"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1048"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1048], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:27 UTC +00:00], ["pageable_id", 1048], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:27 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1047]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1047]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1047], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1047]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.4ms) Rendered admin/articles/edit.html.haml within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1047/text_blocks/new?content_block%5Btemp_id%5D=1387355787342" for 127.0.0.1 at 2013-12-18 12:36:27 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355787342"}, "page_id"=>"1047"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1047"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1048]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1048], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.7ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["height", 480], ["page_id", 1048], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1048 [["pageable_type", "Article"], ["pageable_id", 1049], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1048]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1048]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1048], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1048]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["page_id", 1049], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 1"], ["imageable_id", 441], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 2"], ["imageable_id", 441], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 3"], ["imageable_id", 441], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]] SQL (0.6ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1049 [["pageable_type", "Article"], ["pageable_id", 1050], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1049]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1049]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1049], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1049]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 441], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["page_id", 1050], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1050 [["pageable_type", "Article"], ["pageable_id", 1051], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1050]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1050]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1050], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1050]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["page_id", 1051], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 4"], ["imageable_id", 442], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 5"], ["imageable_id", 442], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 6"], ["imageable_id", 442], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["page_id", 1051], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["height", 480], ["page_id", 1051], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1051 [["pageable_type", "Article"], ["pageable_id", 1052], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1051]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1051]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1051], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1051]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["page_id", 1052], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 7"], ["imageable_id", 443], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00], ["description", "image name 8"], ["imageable_id", 443], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:29 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 9"], ["imageable_id", 443], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1052], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["height", 480], ["page_id", 1052], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1052 [["pageable_type", "Article"], ["pageable_id", 1053], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1052]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1052]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1052], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1052]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 443], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.8ms) Rendered collection (34.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (39.1ms) Rendered articles/show.html.haml (46.0ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1053], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 10"], ["imageable_id", 444], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 11"], ["imageable_id", 444], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 12"], ["imageable_id", 444], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1053], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["height", 480], ["page_id", 1053], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1053 [["pageable_type", "Article"], ["pageable_id", 1054], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1053]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1053]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1053], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1053]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 444], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.2ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1054], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 13"], ["imageable_id", 445], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 14"], ["imageable_id", 445], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["description", "image name 15"], ["imageable_id", 445], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1054], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["height", 480], ["page_id", 1054], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1054 [["pageable_type", "Article"], ["pageable_id", 1055], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1054]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1054]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1054], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1054]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 445], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.8ms) Rendered collection (6.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (9.5ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1056/edit" for 127.0.0.1 at 2013-12-18 12:36:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1056"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1056"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1056], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["pageable_id", 1056], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1055]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1055]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1055], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1055]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.6ms) Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 2.1ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1056], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["page_id", 1055], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:30 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/1056/edit" for 127.0.0.1 at 2013-12-18 12:36:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1056"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1056"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1056], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1055]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1055]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1055], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1055]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (15.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.9ms) Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:36:30 +0400 Started DELETE "/redditor/admin/pages/1055/video_blocks/550" for 127.0.0.1 at 2013-12-18 12:36:30 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1055", "id"=>"550"} Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1055"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1055], ["id", "550"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 550]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/1056/edit" for 127.0.0.1 at 2013-12-18 12:36:30 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1056"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1056"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1056], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1055]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1055]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1055], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1055]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.1ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.6ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:32 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:32 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1057/edit" for 127.0.0.1 at 2013-12-18 12:36:32 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1057"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1057"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1057], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:32 UTC +00:00], ["pageable_id", 1057], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:32 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1056]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1056]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1056], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1056]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.1ms) Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1056/video_blocks/new?content_block%5Btemp_id%5D=1387355792935" for 127.0.0.1 at 2013-12-18 12:36:32 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355792935"}, "page_id"=>"1056"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1056"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1057]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1057], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (18.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (21.4ms) Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/1057" for 127.0.0.1 at 2013-12-18 12:36:32 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355792935"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355792935"}}, "id"=>"1056"}}, "commit"=>"Submit", "id"=>"1057"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1057"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1057], ["pageable_type", "Article"]]  (0.0ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1056]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1056]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1056], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1056]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.0ms) Completed 200 OK in 26ms (Views: 18.4ms | ActiveRecord: 0.9ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/1058/edit" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1058"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1058"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1058], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["pageable_id", 1058], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1057]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1057]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1057], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1057]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.7ms) Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1057/video_blocks/new?content_block%5Btemp_id%5D=1387355793165" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355793165"}, "page_id"=>"1057"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1057"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1058]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1058], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.4ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/1058" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355793165"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355793165"}}, "id"=>"1057"}}, "commit"=>"Submit", "id"=>"1058"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1058"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1058], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["page_id", 1057], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1057]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1057]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1057], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1057]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.4ms) Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 1.9ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1059/edit" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1059"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1059"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1059], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["pageable_id", 1059], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1058]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1058]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1058], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1058]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.6ms) Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1058/video_blocks/new?content_block%5Btemp_id%5D=1387355793472" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355793472"}, "page_id"=>"1058"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1058"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1059]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1059], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.5ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.4ms) Started POST "/redditor/admin/pages/1058/video_blocks" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355793472"}, "page_id"=>"1058"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1058"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["page_id", 1058], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:36:33 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1059]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1059], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (17.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (30.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (38.9ms) Started GET "/admin/articles/1059/edit" for 127.0.0.1 at 2013-12-18 12:36:33 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1059"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1059"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1059], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1058]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1058]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1058], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1058]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.7ms) Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.6ms) Completed 200 OK in 235ms (Views: 228.5ms | ActiveRecord: 3.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1059], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 1"], ["imageable_id", 446], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 2"], ["imageable_id", 446], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 3"], ["imageable_id", 446], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1059], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["height", 480], ["page_id", 1059], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1059 [["pageable_type", "Article"], ["pageable_id", 1060], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1059]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1059]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1059], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1059]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 446], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.2ms) Rendered collection (35.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (59.0ms) Rendered articles/show.html.haml (69.8ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1060], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 4"], ["imageable_id", 447], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 5"], ["imageable_id", 447], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 6"], ["imageable_id", 447], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1060], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["height", 480], ["page_id", 1060], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1060 [["pageable_type", "Article"], ["pageable_id", 1061], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1060]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1060]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1060], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1060]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 447], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.6ms) Rendered collection (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1061], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 7"], ["imageable_id", 448], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 8"], ["imageable_id", 448], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["description", "image name 9"], ["imageable_id", 448], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1061], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["height", 480], ["page_id", 1061], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1061 [["pageable_type", "Article"], ["pageable_id", 1062], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1061]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1061]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1061], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1061]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 448], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00], ["page_id", 1062], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:50 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 10"], ["imageable_id", 449], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 11"], ["imageable_id", 449], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 12"], ["imageable_id", 449], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1062 [["pageable_type", "Article"], ["pageable_id", 1063], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1062]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1062]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1062], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1062]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 449], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["height", 480], ["page_id", 1063], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]] SQL (0.4ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1063 [["pageable_type", "Article"], ["pageable_id", 1064], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1063]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1063]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1063], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1063]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["page_id", 1064], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1064 [["pageable_type", "Article"], ["pageable_id", 1065], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (1.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1064]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1064]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1064], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1064]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["page_id", 1065], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 13"], ["imageable_id", 450], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 14"], ["imageable_id", 450], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["description", "image name 15"], ["imageable_id", 450], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["page_id", 1065], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["height", 480], ["page_id", 1065], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1065 [["pageable_type", "Article"], ["pageable_id", 1066], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1065]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1065]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1065], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1065]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:51 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1067/edit" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1067"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1067"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1067], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:53 UTC +00:00], ["pageable_id", 1067], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:53 UTC +00:00]]  (1.0ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1066]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1066]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1066], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1066]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (18.2ms) Completed 200 OK in 118ms (Views: 108.0ms | ActiveRecord: 4.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Started GET "/redditor/admin/pages/1066/text_blocks/new?content_block%5Btemp_id%5D=1387355813451" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355813451"}, "page_id"=>"1066"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1066"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1067]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1067], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (22.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (33.5ms) Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/1067" for 127.0.0.1 at 2013-12-18 12:36:53 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"id"=>"1066"}}, "commit"=>"Submit", "id"=>"1067"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1067"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1067], ["pageable_type", "Article"]]  (0.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1066]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1066]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1066], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1066]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.7ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 2.0ms) Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1068/edit" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1068"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1068"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1068], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00], ["pageable_id", 1068], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1067]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1067]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1067], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1067]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 1.9ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1068], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00], ["page_id", 1067], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:36:55 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1068/edit" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1068"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1068"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1068], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1067]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1067]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1067], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1067]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (16.4ms) Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.7ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Started DELETE "/redditor/admin/pages/1067/text_blocks/586" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1067", "id"=>"586"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1067"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1067], ["id", "586"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 586]]  (0.7ms) commit transaction Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/1068/edit" for 127.0.0.1 at 2013-12-18 12:36:55 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1068"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1068"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1068], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1067]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1067]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1067], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1067]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.5ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.6ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:58 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:36:58 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1069/edit" for 127.0.0.1 at 2013-12-18 12:36:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1069"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1069"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1069], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:36:58 UTC +00:00], ["pageable_id", 1069], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:36:58 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1068]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1068]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1068], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1068]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.6ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1068/text_blocks/new?content_block%5Btemp_id%5D=1387355818141" for 127.0.0.1 at 2013-12-18 12:36:58 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355818141"}, "page_id"=>"1068"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1068"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1069]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1069], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (6.8ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:37:00 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1070/edit" for 127.0.0.1 at 2013-12-18 12:37:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1070"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1070"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1070], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:00 UTC +00:00], ["pageable_id", 1070], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:37:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1069]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1069]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1069], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1069]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1069/text_blocks/new?content_block%5Btemp_id%5D=1387355820288" for 127.0.0.1 at 2013-12-18 12:37:00 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355820288"}, "page_id"=>"1069"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1069"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1070]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1070], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.0ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.4ms) Article Load (2.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:02 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:37:02 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1071/edit" for 127.0.0.1 at 2013-12-18 12:37:02 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1071"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1071"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1071], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:02 UTC +00:00], ["pageable_id", 1071], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:37:02 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1070]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1070]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1070], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1070]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.7ms) Started GET "/redditor/admin/pages/1070/video_blocks/new?content_block%5Btemp_id%5D=1387355822429" for 127.0.0.1 at 2013-12-18 12:37:02 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355822429"}, "page_id"=>"1070"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1070"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1071]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1071], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (8.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (18.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (22.1ms) Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:37:02 +0400 Article Load (2.3ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1072/edit" for 127.0.0.1 at 2013-12-18 12:37:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1072"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1072"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1072], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00], ["pageable_id", 1072], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1071]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1071]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1071], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1071]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.7ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1072], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00], ["page_id", 1071], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:37:04 UTC +00:00], ["youtube", "11111111111"]]  (1.2ms) commit transaction Started GET "/admin/articles/1072/edit" for 127.0.0.1 at 2013-12-18 12:37:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1072"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1072"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1072], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1071]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1071]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1071], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1071]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (11.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.0ms) Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.6ms) Started DELETE "/redditor/admin/pages/1071/video_blocks/558" for 127.0.0.1 at 2013-12-18 12:37:04 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1071", "id"=>"558"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1071"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1071], ["id", "558"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 558]]  (2.0ms) commit transaction Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 2.7ms) Started GET "/admin/articles/1072/edit" for 127.0.0.1 at 2013-12-18 12:37:04 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1072"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1072"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1072], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1071]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1071]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1071], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1071]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.5ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.6ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:06 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:37:06 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1073/edit" for 127.0.0.1 at 2013-12-18 12:37:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1073"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1073"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1073], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:06 UTC +00:00], ["pageable_id", 1073], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:37:06 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1072]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1072]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1072], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1072]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1072/video_blocks/new?content_block%5Btemp_id%5D=1387355827041" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355827041"}, "page_id"=>"1072"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1072"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1073]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1073], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.5ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1073" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355827041"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355827041"}}, "id"=>"1072"}}, "commit"=>"Submit", "id"=>"1073"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1073"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1073], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["page_id", 1072], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["youtube", "11111111111"]]  (2.1ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1072]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1072]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1072], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1072]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.2ms) Completed 200 OK in 23ms (Views: 16.1ms | ActiveRecord: 3.1ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00]]  (1.1ms) commit transaction Started GET "/admin/articles/1074/edit" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1074"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1074"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1074], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["pageable_id", 1074], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1073]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1073]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1073], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1073]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1073/video_blocks/new?content_block%5Btemp_id%5D=1387355827332" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355827332"}, "page_id"=>"1073"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1073"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1074]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1074], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (9.5ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/1073/video_blocks" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355827332"}, "page_id"=>"1073"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1073"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["page_id", 1073], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:37:07 UTC +00:00], ["youtube", "11111111111"]]  (2.0ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1074]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1074], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (31.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (43.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (55.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (64.0ms) Started GET "/admin/articles/1074/edit" for 127.0.0.1 at 2013-12-18 12:37:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1074"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1074"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1074], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1073]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1073]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1073], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1073]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (5.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.8ms) Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.6ms) Completed 200 OK in 230ms (Views: 224.8ms | ActiveRecord: 2.8ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:04 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:04 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1075/edit" for 127.0.0.1 at 2013-12-18 12:39:06 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1075"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1075"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1075], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:06 UTC +00:00], ["pageable_id", 1075], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:06 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1074]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1074]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1074], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1074]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (33.0ms) Rendered admin/articles/edit.html.haml within layouts/application (79.4ms) Completed 200 OK in 173ms (Views: 139.7ms | ActiveRecord: 4.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:39:06 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/redditor/admin/pages/1074/video_blocks/new?content_block%5Btemp_id%5D=1387355947185" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355947185"}, "page_id"=>"1074"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1074"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1075]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1075], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (26.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (37.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (43.9ms) Completed 200 OK in 69ms (Views: 50.4ms | ActiveRecord: 0.6ms) Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Started POST "/redditor/admin/pages/1074/video_blocks" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355947185"}, "page_id"=>"1074"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1074"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00], ["page_id", 1074], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00], ["youtube", "11111111111"]]  (2.2ms) commit transaction Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1075]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1075], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (12.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (24.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (32.4ms) Started GET "/admin/articles/1075/edit" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1075"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1075"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1075], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1074]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1074]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1074], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1074]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (11.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (20.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (27.5ms) Rendered admin/articles/edit.html.haml within layouts/application (29.3ms) Completed 200 OK in 33ms (Views: 29.3ms | ActiveRecord: 2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/wrapper.js.coffee (200.4ms) Completed 200 OK in 216ms (Views: 208.6ms | ActiveRecord: 3.1ms) Article Load (1.4ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1076/edit" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1076"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1076"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1076], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00], ["pageable_id", 1076], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1075]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1075]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1075], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1075]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.9ms) Rendered admin/articles/edit.html.haml within layouts/application (12.1ms) Completed 200 OK in 19ms (Views: 13.6ms | ActiveRecord: 2.1ms) Started GET "/redditor/admin/pages/1075/video_blocks/new?content_block%5Btemp_id%5D=1387355947825" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355947825"}, "page_id"=>"1075"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1075"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1076]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1076], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (10.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (13.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (13.9ms) Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.5ms) Started PATCH "/admin/articles/1076" for 127.0.0.1 at 2013-12-18 12:39:07 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355947825"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355947825"}}, "id"=>"1075"}}, "commit"=>"Submit", "id"=>"1076"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1076"]]  (0.0ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1076], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1075]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1075]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1075], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1075]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (6.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (17.3ms) Rendered admin/articles/edit.html.haml within layouts/application (20.0ms) Completed 200 OK in 59ms (Views: 49.8ms | ActiveRecord: 2.1ms) Article Load (2.6ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:07 UTC +00:00]]  (0.5ms) commit transaction Started GET "/admin/articles/1077/edit" for 127.0.0.1 at 2013-12-18 12:39:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1077"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1077"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1077], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:08 UTC +00:00], ["pageable_id", 1077], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:08 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1076]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1076]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1076], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1076]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.0ms) Rendered admin/articles/edit.html.haml within layouts/application (8.5ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1077], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:08 UTC +00:00], ["page_id", 1076], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:08 UTC +00:00], ["youtube", "11111111111"]]  (0.9ms) commit transaction Started GET "/admin/articles/1077/edit" for 127.0.0.1 at 2013-12-18 12:39:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1077"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1077"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1077], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1076]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1076]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1076], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1076]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.3ms) Rendered admin/articles/edit.html.haml within layouts/application (16.5ms) Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/1076/video_blocks/562" for 127.0.0.1 at 2013-12-18 12:39:08 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1076", "id"=>"562"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1076"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1076], ["id", "562"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 562]]  (1.3ms) commit transaction Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.6ms) Started GET "/admin/articles/1077/edit" for 127.0.0.1 at 2013-12-18 12:39:08 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1077"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1077"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1077], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1076]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1076]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1076], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1076]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.9ms) Rendered admin/articles/edit.html.haml within layouts/application (10.2ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.6ms) Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1078/edit" for 127.0.0.1 at 2013-12-18 12:39:10 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1078"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1078"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1078], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["pageable_id", 1078], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1077]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1077]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1077], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1077]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.5ms) Rendered admin/articles/edit.html.haml within layouts/application (8.4ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 2.7ms) Started GET "/redditor/admin/pages/1077/video_blocks/new?content_block%5Btemp_id%5D=1387355950562" for 127.0.0.1 at 2013-12-18 12:39:10 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355950562"}, "page_id"=>"1077"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1077"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1078]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1078], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (9.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (12.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (12.6ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.3ms) Started PATCH "/admin/articles/1078" for 127.0.0.1 at 2013-12-18 12:39:10 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355950562"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355950562"}}, "id"=>"1077"}}, "commit"=>"Submit", "id"=>"1078"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1078"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1078], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["page_id", 1077], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["youtube", "11111111111"]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1077]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1077]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1077], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1077]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (14.4ms) Rendered admin/articles/edit.html.haml within layouts/application (16.6ms) Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 1.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["page_id", 1078], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["description", "image name 1"], ["imageable_id", 451], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00], ["description", "image name 2"], ["imageable_id", 451], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:10 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["description", "image name 3"], ["imageable_id", 451], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["page_id", 1078], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["height", 480], ["page_id", 1078], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1078 [["pageable_type", "Article"], ["pageable_id", 1079], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1078]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1078]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1078], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1078]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["page_id", 1079], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["description", "image name 4"], ["imageable_id", 452], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["description", "image name 5"], ["imageable_id", 452], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["description", "image name 6"], ["imageable_id", 452], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1079 [["pageable_type", "Article"], ["pageable_id", 1080], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1079]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1079]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1079], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1079]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 452], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["height", 480], ["page_id", 1080], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1080 [["pageable_type", "Article"], ["pageable_id", 1081], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1080]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1080]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1080], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1080]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["page_id", 1081], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1081 [["pageable_type", "Article"], ["pageable_id", 1082], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1081]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1081]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1081], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1081]] Article Load (0.9ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1083/edit" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1083"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1083"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1083], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00], ["pageable_id", 1083], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:11 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1082]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1082]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1082], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1082]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Rendered admin/articles/edit.html.haml within layouts/application (7.0ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/1082/text_blocks/new?content_block%5Btemp_id%5D=1387355951338" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355951338"}, "page_id"=>"1082"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1082"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1083]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1083], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (2.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (14.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (17.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (18.1ms) Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.6ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:39:11 +0400 Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1084/edit" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1084"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1084"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1084], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00], ["pageable_id", 1084], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1083]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1083]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1083], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1083]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Rendered admin/articles/edit.html.haml within layouts/application (7.1ms) Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1083/text_blocks/new?content_block%5Btemp_id%5D=1387355953460" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355953460"}, "page_id"=>"1083"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1083"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1084]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1084], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (9.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (9.5ms) Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.6ms) Started PATCH "/admin/articles/1084" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387355953460"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387355953460"}}, "id"=>"1083"}}, "commit"=>"Submit", "id"=>"1084"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1084"]]  (0.1ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1084], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1083]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1083]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1083], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1083]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (3.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.5ms) Rendered admin/articles/edit.html.haml within layouts/application (16.4ms) Completed 200 OK in 26ms (Views: 17.4ms | ActiveRecord: 0.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1085/edit" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1085"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1085"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1085], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00], ["pageable_id", 1085], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1084]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1084]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1084], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1084]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.5ms) Rendered admin/articles/edit.html.haml within layouts/application (7.9ms) Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1085], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00], ["page_id", 1084], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:13 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1085/edit" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1085"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1085"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1085], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1084]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1084]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1084], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1084]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (15.2ms) Rendered admin/articles/edit.html.haml within layouts/application (18.5ms) Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/1084/text_blocks/589" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1084", "id"=>"589"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1084"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1084], ["id", "589"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 589]]  (0.7ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms) Started GET "/admin/articles/1085/edit" for 127.0.0.1 at 2013-12-18 12:39:13 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1085"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1085"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1085], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1084]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1084]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1084], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1084]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (7.0ms) Rendered admin/articles/edit.html.haml within layouts/application (11.5ms) Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 0.9ms) Article Load (2.5ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:16 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:16 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1086/edit" for 127.0.0.1 at 2013-12-18 12:39:16 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1086"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1086"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1086], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:16 UTC +00:00], ["pageable_id", 1086], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:16 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1085]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1085]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1085], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1085]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Rendered admin/articles/edit.html.haml within layouts/application (6.8ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1085/text_blocks/new?content_block%5Btemp_id%5D=1387355956148" for 127.0.0.1 at 2013-12-18 12:39:16 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355956148"}, "page_id"=>"1085"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1085"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1086]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1086], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (7.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/new.js.erb (7.4ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.4ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1086], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 7"], ["imageable_id", 453], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 8"], ["imageable_id", 453], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 9"], ["imageable_id", 453], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1086], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["height", 480], ["page_id", 1086], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1086 [["pageable_type", "Article"], ["pageable_id", 1087], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1086]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1086]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1086], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1086]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 453], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.4ms) Rendered collection (32.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (37.0ms) Rendered articles/show.html.haml (43.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1087], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 10"], ["imageable_id", 454], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 11"], ["imageable_id", 454], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 12"], ["imageable_id", 454], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1087], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["height", 480], ["page_id", 1087], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1087 [["pageable_type", "Article"], ["pageable_id", 1088], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1087]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1087]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1087], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1087]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 454], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1088], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 13"], ["imageable_id", 455], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 14"], ["imageable_id", 455], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["description", "image name 15"], ["imageable_id", 455], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["page_id", 1088], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["height", 480], ["page_id", 1088], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1088 [["pageable_type", "Article"], ["pageable_id", 1089], ["updated_at", Wed, 18 Dec 2013 08:39:18 UTC +00:00]]  (2.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1088]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1088]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1088], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1088]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 455], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.5ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (2.8ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["page_id", 1089], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 1"], ["imageable_id", 456], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 2"], ["imageable_id", 456], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 3"], ["imageable_id", 456], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["page_id", 1089], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["height", 480], ["page_id", 1089], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]] SQL (0.3ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1089 [["pageable_type", "Article"], ["pageable_id", 1090], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1089]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1089]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1089], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1089]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 456], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (4.3ms) Rendered collection (30.8ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (52.7ms) Rendered articles/show.html.haml (61.3ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["page_id", 1090], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 4"], ["imageable_id", 457], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 5"], ["imageable_id", 457], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 6"], ["imageable_id", 457], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["page_id", 1090], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["height", 480], ["page_id", 1090], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1090 [["pageable_type", "Article"], ["pageable_id", 1091], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1090]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1090]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1090], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1090]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 457], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.7ms) Rendered collection (5.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.7ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["page_id", 1091], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00], ["description", "image name 7"], ["imageable_id", 458], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:54 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["description", "image name 8"], ["imageable_id", 458], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["description", "image name 9"], ["imageable_id", 458], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["page_id", 1091], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["height", 480], ["page_id", 1091], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1091 [["pageable_type", "Article"], ["pageable_id", 1092], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1091]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1091]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1091], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1091]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 458], ["imageable_type", "Redditor::SliderBlock"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/slider_blocks/_slider_block_image.html.haml (3.4ms) Rendered collection (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/pages/_page.html.haml (8.6ms) Article Load (1.0ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:55 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1093/edit" for 127.0.0.1 at 2013-12-18 12:39:56 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1093"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1093"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1093], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:56 UTC +00:00], ["pageable_id", 1093], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:56 UTC +00:00]]  (2.0ms) commit transaction Redditor::TextBlock Load (0.3ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1092]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1092]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1092], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1092]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (46.3ms) Completed 200 OK in 139ms (Views: 127.4ms | ActiveRecord: 5.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/redditor/add_video.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/redditor/add_txt.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/redditor/add_photo.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/redditor/add_slider.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/redditor/admin/pages/1092/video_blocks/new?content_block%5Btemp_id%5D=1387355997223" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355997223"}, "page_id"=>"1092"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1092"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1093]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1093], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (13.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (26.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (37.0ms) Completed 200 OK in 52ms (Views: 49.7ms | ActiveRecord: 0.5ms) Started GET "/assets/redditor/move_handler.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started GET "/assets/redditor/big/video.png" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Started PATCH "/admin/articles/1093" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355997223"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387355997223"}}, "id"=>"1092"}}, "commit"=>"Submit", "id"=>"1093"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1093"]]  (0.0ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1093], ["pageable_type", "Article"]] SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["page_id", 1092], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["youtube", "11111111111"]]  (1.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1092]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1092]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1092], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1092]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (9.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (17.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (23.0ms) Completed 200 OK in 34ms (Views: 25.9ms | ActiveRecord: 2.8ms) Article Load (1.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1094/edit" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1094"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1094"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1094], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["pageable_id", 1094], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1093]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1093]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1093], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.2ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1093]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (8.4ms) Completed 200 OK in 17ms (Views: 10.6ms | ActiveRecord: 3.4ms) Started GET "/redditor/admin/pages/1093/video_blocks/new?content_block%5Btemp_id%5D=1387355997708" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387355997708"}, "page_id"=>"1093"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1093"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1094]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1094], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (10.2ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1094" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"video_blocks_attributes"=>{"1387355997708"=>{"position"=>"0", "youtube"=>"", "width"=>"", "height"=>"", "temp_id"=>"1387355997708"}}, "id"=>"1093"}}, "commit"=>"Submit", "id"=>"1094"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1094"]]  (0.0ms) begin transaction Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1094], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1093]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1093]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1093], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1093]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (7.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (12.6ms) Completed 200 OK in 22ms (Views: 15.8ms | ActiveRecord: 0.9ms) Article Load (2.1ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1095/edit" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1095"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1095"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1095], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["pageable_id", 1095], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1094]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1094]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1094], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1094]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1095], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["page_id", 1094], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:39:57 UTC +00:00], ["youtube", "11111111111"]]  (0.8ms) commit transaction Started GET "/admin/articles/1095/edit" for 127.0.0.1 at 2013-12-18 12:39:57 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1095"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1095"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1095], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1094]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1094]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1094], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1094]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (13.8ms) Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/1094/video_blocks/573" for 127.0.0.1 at 2013-12-18 12:39:58 +0400 Processing by Redditor::Admin::VideoBlocksController#destroy as JS Parameters: {"page_id"=>"1094", "id"=>"573"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1094"]] Redditor::VideoBlock Load (0.2ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? AND "redditor_video_blocks"."id" = ? LIMIT 1 [["page_id", 1094], ["id", "573"]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."id" = ? [["id", 573]]  (1.8ms) commit transaction Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 3.0ms) Started GET "/admin/articles/1095/edit" for 127.0.0.1 at 2013-12-18 12:39:58 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1095"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1095"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1095], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1094]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1094]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1094], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1094]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.8ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms) Article Load (1.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1096/edit" for 127.0.0.1 at 2013-12-18 12:40:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1096"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1096"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1096], ["pageable_type", "Article"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["pageable_id", 1096], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1095]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1095]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1095], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1095]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (6.4ms) Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 2.6ms) Started GET "/redditor/admin/pages/1095/video_blocks/new?content_block%5Btemp_id%5D=1387356000281" for 127.0.0.1 at 2013-12-18 12:40:00 +0400 Processing by Redditor::Admin::VideoBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387356000281"}, "page_id"=>"1095"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1095"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1096]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1096], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (4.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (8.5ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (11.1ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.3ms) Started POST "/redditor/admin/pages/1095/video_blocks" for 127.0.0.1 at 2013-12-18 12:40:00 +0400 Processing by Redditor::Admin::VideoBlocksController#create as */* Parameters: {"content_block"=>{"position"=>"0", "youtube"=>"11111111111", "width"=>"", "height"=>"", "temp_id"=>"1387356000281"}, "page_id"=>"1095"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1095"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "page_id", "position", "updated_at", "youtube") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["page_id", 1095], ["position", 0], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["youtube", "11111111111"]]  (1.7ms) commit transaction Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1096]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1096], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (12.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (24.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (32.3ms) Started GET "/admin/articles/1096/edit" for 127.0.0.1 at 2013-12-18 12:40:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1096"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1096"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1096], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1095]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1095]] Redditor::Image Load (0.2ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1095], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1095]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_video_block.haml (7.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (13.7ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (20.1ms) Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 0.9ms) Completed 200 OK in 180ms (Views: 174.5ms | ActiveRecord: 2.6ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["page_id", 1096], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1096 [["pageable_type", "Article"], ["pageable_id", 1097], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1096]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1096]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1096], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1096]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["page_id", 1097], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 10"], ["imageable_id", 459], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 11"], ["imageable_id", 459], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 12"], ["imageable_id", 459], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1097 [["pageable_type", "Article"], ["pageable_id", 1098], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1097]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1097]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1097], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1097]]  (0.2ms) SELECT COUNT(*) FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? [["imageable_id", 459], ["imageable_type", "Redditor::SliderBlock"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["height", 480], ["page_id", 1098], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1098 [["pageable_type", "Article"], ["pageable_id", 1099], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1098]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1098]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1098], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1098]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_slider_blocks" ("created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["page_id", 1099], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 13"], ["imageable_id", 460], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 14"], ["imageable_id", 460], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_images" ("created_at", "description", "imageable_id", "imageable_type", "position", "src", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["description", "image name 15"], ["imageable_id", 460], ["imageable_type", "Redditor::SliderBlock"], ["position", 1000], ["src", "test.jpg"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Test Redditor::TextBlock"], ["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["page_id", 1099], ["position", 2], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_video_blocks" ("created_at", "height", "page_id", "position", "updated_at", "width", "youtube") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["height", 480], ["page_id", 1099], ["position", 3], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["width", 640], ["youtube", "11111111111"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]] SQL (0.2ms) UPDATE "redditor_pages" SET "pageable_type" = ?, "pageable_id" = ?, "updated_at" = ? WHERE "redditor_pages"."id" = 1099 [["pageable_type", "Article"], ["pageable_id", 1100], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.9ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1099]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1099]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1099], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1099]] Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.6ms) commit transaction Started GET "/admin/articles/1101/edit" for 127.0.0.1 at 2013-12-18 12:40:00 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1101"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1101"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1101], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00], ["pageable_id", 1101], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:40:00 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1100]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1100]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1100], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1100]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.0ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.8ms) Started GET "/redditor/admin/pages/1100/text_blocks/new?content_block%5Btemp_id%5D=1387356001040" for 127.0.0.1 at 2013-12-18 12:40:01 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387356001040"}, "page_id"=>"1100"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1100"]] Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1101]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1101], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (2.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (12.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (16.4ms) Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 0.6ms) Started GET "/assets/redactor/wym.css" for 127.0.0.1 at 2013-12-18 12:40:01 +0400 Started GET "/assets/redditor/big/text.png" for 127.0.0.1 at 2013-12-18 12:40:01 +0400 Started GET "/assets/redditor/no_format_text.png" for 127.0.0.1 at 2013-12-18 12:40:01 +0400 Started GET "/assets/redactor/icons.png" for 127.0.0.1 at 2013-12-18 12:40:01 +0400 Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1102/edit" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1102"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1102"]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1102], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00], ["pageable_id", 1102], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1101]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1101]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1101], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1101]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (4.9ms) Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 2.0ms) Started GET "/redditor/admin/pages/1101/text_blocks/new?content_block%5Btemp_id%5D=1387356003173" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387356003173"}, "page_id"=>"1101"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1101"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1102]] Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1102], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (4.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.9ms) Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.4ms) Started PATCH "/admin/articles/1102" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Admin::ArticlesController#update as HTML Parameters: {"utf8"=>"✓", "article"=>{"title"=>"Test article", "page_attributes"=>{"text_blocks_attributes"=>{"1387356003173"=>{"position"=>"0", "body"=>"", "temp_id"=>"1387356003173"}}, "id"=>"1101"}}, "commit"=>"Submit", "id"=>"1102"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1102"]]  (0.1ms) begin transaction Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1102], ["pageable_type", "Article"]]  (0.1ms) rollback transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1101]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1101]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1101], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1101]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (1.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (2.9ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (6.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.4ms) Completed 200 OK in 22ms (Views: 14.9ms | ActiveRecord: 0.8ms) Article Load (0.8ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1103/edit" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1103"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1103"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1103], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00], ["pageable_id", 1103], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00]]  (0.7ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1102]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1102]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1102], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1102]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (7.6ms) Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 1.8ms) Redditor::Page Load (0.3ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1103], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "redditor_text_blocks" ("body", "created_at", "page_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "123"], ["created_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00], ["page_id", 1102], ["position", 1], ["updated_at", Wed, 18 Dec 2013 08:40:03 UTC +00:00]]  (0.8ms) commit transaction Started GET "/admin/articles/1103/edit" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1103"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1103"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1103], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1102]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1102]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1102], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1102]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (0.6ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.4ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (11.3ms) Completed 200 OK in 18ms (Views: 14.9ms | ActiveRecord: 0.7ms) Started DELETE "/redditor/admin/pages/1102/text_blocks/598" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Redditor::Admin::TextBlocksController#destroy as JS Parameters: {"page_id"=>"1102", "id"=>"598"} Redditor::Page Load (0.2ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1102"]] Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? AND "redditor_text_blocks"."id" = ? ORDER BY "redditor_text_blocks".position ASC LIMIT 1 [["page_id", 1102], ["id", "598"]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."id" = ? [["id", 598]]  (0.6ms) commit transaction Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/admin/articles/1103/edit" for 127.0.0.1 at 2013-12-18 12:40:03 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1103"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1103"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1103], ["pageable_type", "Article"]] Redditor::TextBlock Load (0.1ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1102]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1102]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1102], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1102]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.1ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms) Article Load (2.2ms) delete from articles; delete from redditor_pages; delete from redditor_slider_blocks; delete from redditor_text_blocks; delete from redditor_video_pages; delete from redditor_images  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "articles" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:05 UTC +00:00], ["title", "Test article"], ["updated_at", Wed, 18 Dec 2013 08:40:05 UTC +00:00]]  (0.7ms) commit transaction Started GET "/admin/articles/1104/edit" for 127.0.0.1 at 2013-12-18 12:40:05 +0400 Processing by Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1104"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1104"]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1104], ["pageable_type", "Article"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "redditor_pages" ("created_at", "pageable_id", "pageable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Dec 2013 08:40:05 UTC +00:00], ["pageable_id", 1104], ["pageable_type", "Article"], ["updated_at", Wed, 18 Dec 2013 08:40:05 UTC +00:00]]  (0.8ms) commit transaction Redditor::TextBlock Load (0.2ms) SELECT "redditor_text_blocks".* FROM "redditor_text_blocks" WHERE "redditor_text_blocks"."page_id" = ? ORDER BY "redditor_text_blocks".position ASC [["page_id", 1103]] Redditor::VideoBlock Load (0.1ms) SELECT "redditor_video_blocks".* FROM "redditor_video_blocks" WHERE "redditor_video_blocks"."page_id" = ? [["page_id", 1103]] Redditor::Image Load (0.1ms) SELECT "redditor_images".* FROM "redditor_images" WHERE "redditor_images"."imageable_id" = ? AND "redditor_images"."imageable_type" = ? ORDER BY "redditor_images".position ASC [["imageable_id", 1103], ["imageable_type", "Redditor::Page"]] Redditor::SliderBlock Load (0.1ms) SELECT "redditor_slider_blocks".* FROM "redditor_slider_blocks" WHERE "redditor_slider_blocks"."page_id" = ? [["page_id", 1103]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (0.0ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_page.haml (5.2ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 1.9ms) Started GET "/redditor/admin/pages/1103/text_blocks/new?content_block%5Btemp_id%5D=1387356005807" for 127.0.0.1 at 2013-12-18 12:40:05 +0400 Processing by Redditor::Admin::TextBlocksController#new as JS Parameters: {"content_block"=>{"temp_id"=>"1387356005807"}, "page_id"=>"1103"} Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."id" = ? LIMIT 1 [["id", "1103"]] Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? ORDER BY "articles"."id" ASC LIMIT 1 [["id", 1104]] Redditor::Page Load (0.1ms) SELECT "redditor_pages".* FROM "redditor_pages" WHERE "redditor_pages"."pageable_id" = ? AND "redditor_pages"."pageable_type" = ? ORDER BY "redditor_pages"."id" ASC LIMIT 1 [["pageable_id", 1104], ["pageable_type", "Article"]] Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_validate.haml (0.1ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_text_block.haml (1.3ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_content_block.haml (5.2ms) Rendered /Users/ionbuggy/projects/redde/redditor/app/views/redditor/admin/_wrapper.haml (8.6ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateArticleCategories (20140128152208)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "article_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "visible" boolean, "position" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140128152208"]]  (2.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"